keybinding for change account should be reliable now.

This commit is contained in:
stormdragon2976@gmail.com 2018-08-10 10:56:41 -04:00
parent 1c823b1f01
commit 34c9d28cf2

View File

@ -361,7 +361,7 @@ add_keybinding()
# Here we search for previous keybinding
local fNumber=1
while : ; do
grep "^bind.*index.*<F$fNumber>" $muttHome/muttrc &> /dev/null || break # fNumber is now the currently open keybinding.
grep "^[[:space:]m]acro.*index.*<F$fNumber>.*" $muttHome/muttrc &> /dev/null || break # fNumber is now the currently open keybinding.
((fNumber++)) # fNumber was taken, so increment it.
done
# Bind key FfNumber to the mail account.