From b28916fcf57b63c233b68e500a0596b6dc704299 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 23 Nov 2018 11:54:30 +1300 Subject: Correct RHS of (un)important mail ftplugin map This resolves the issue raised in f1b6f3b, where the mappings did not work if the cursor was on the first line. I had the colon `:` that starts the `ex` command and the `` that clears any existing command around the wrong way. Because CTRL-U in normal mode scrolls up, it fails if we're already on the top line, and the rest of the mapping looks to be skipped. There don't seem to be any other instances of the same error that I can find. --- vim/after/ftplugin/mail.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim') diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 609cd92f..688ca6eb 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -43,10 +43,10 @@ endif " Flag messages as important/unimportant nnoremap h - \ :call mail#FlagImportant() + \ :call mail#FlagImportant() let b:undo_ftplugin .= '|nunmap h' nnoremap l - \ :call mail#FlagUnimportant() + \ :call mail#FlagUnimportant() let b:undo_ftplugin .= '|nunmap l' " Quote operator -- cgit v1.2.3