Fixed errors with some of the possible editor configurations.

This commit is contained in:
Storm Dragon 2019-04-20 17:18:22 -04:00
parent ef7862a5d9
commit ce1063a722

View File

@ -216,9 +216,10 @@ EOF
fi
# Try to handle special cases like with ne and nano skipping headers and line wrapping.
case "$i" in
"nano") echo "set editor=$i +7 -r 72" > "$muttHome/muttrc";;
"ne") echo "set editor=$i +7" > "$muttHome/muttrc";;
*) echo "set editor=$i +7" > "$muttHome/muttrc";;
"nano") echo "set editor = '$i +7 -r 72'" > "$muttHome/muttrc";;
"ne") echo "set editor = '$i +7'" > "$muttHome/muttrc";;
"vim") echo "set editor = \"vim -c 'set spell spelllang=${LANG::2}'\"" > "$muttHome/muttrc";;
*) echo "set editor = '$i'" > "$muttHome/muttrc";;
esac
echo "set text_flowed=yes" >> "$muttHome/muttrc"
# I need to figure out a way to detect and set the language for the next setting.