aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-08 13:24:05 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-08 13:24:05 +1200
commite54b958e17f984234eef2a4ca44a0d4ed299aadf (patch)
tree79131b60ea00ec4f2266c8dc7a49ef0920e73145 /vim/after/ftplugin
parentImprove ,[ and ,] mappings in mail (diff)
downloaddotfiles-e54b958e17f984234eef2a4ca44a0d4ed299aadf.tar.gz
dotfiles-e54b958e17f984234eef2a4ca44a0d4ed299aadf.zip
Check both ends of the line range for mail maps
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/mail.vim2
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