diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-08 13:24:05 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-08 13:24:05 +1200 |
commit | e54b958e17f984234eef2a4ca44a0d4ed299aadf (patch) | |
tree | 79131b60ea00ec4f2266c8dc7a49ef0920e73145 | |
parent | Improve ,[ and ,] mappings in mail (diff) | |
download | dotfiles-e54b958e17f984234eef2a4ca44a0d4ed299aadf.tar.gz dotfiles-e54b958e17f984234eef2a4ca44a0d4ed299aadf.zip |
Check both ends of the line range for mail maps
-rw-r--r-- | vim/after/ftplugin/mail.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 66064401..62039585 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -66,7 +66,7 @@ let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>l' function! s:NewBlank(num, up) abort let l:num = a:num let l:par = 0 - while l:num <= line('$') + while l:num > 0 && l:num <= line('$') if getline(l:num) =~# '^[ >]*$' if l:par break |