From: Samir Benmendil Date: Sat, 8 Aug 2020 12:10:00 +0000 (+0100) Subject: mutt: fix F macro to not write message to home X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/c6a94b49c00ea320c67909cbe0d2df2f95d4fbb9?hp=cf75e935fef989adf6958d77d1cf69ee4bbec57b mutt: fix F macro to not write message to home I'm not entirely sure what was happening here. But IIRC this macro was writing emails to ~. Possibly because of the `;s` or something. The set command supports setting multiple options at the same time, just use that. Spliting up the command to multiline also makes it easier to read. --- diff --git a/mutt/bindings b/mutt/bindings index 4898ee6..1815027 100644 --- a/mutt/bindings +++ b/mutt/bindings @@ -30,8 +30,11 @@ macro pager \Cb "|urlscan" "open urlscan" # flag without resolving bind index F flag-message bind pager F noop -macro pager F "set my_resolve=\$resolve;set noresolveset resolve=\$my_resolve"\ - "Flag message without resolving" +macro pager F "\ + set my_resolve=\$resolve noresolve\ +\ + set resolve=\$my_resolve" \ +"Flag message without resolving" # Remap bounce-message function to “B” bind index,pager B bounce-message