diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-09 00:56:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-09 00:56:27 +1200 |
commit | 6dd9572716266426e109404941b1c4a7d2f5ffa8 (patch) | |
tree | 1e7265ef93da3cff758fbd7978b0485fd335db68 /vim/after/ftplugin/mail.vim | |
parent | Merge branch 'release/v1.50.0' into develop (diff) | |
download | dotfiles-6dd9572716266426e109404941b1c4a7d2f5ffa8.tar.gz dotfiles-6dd9572716266426e109404941b1c4a7d2f5ffa8.zip |
Adjust line boundaries for mail motions
Diffstat (limited to 'vim/after/ftplugin/mail.vim')
-rw-r--r-- | vim/after/ftplugin/mail.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index d5f38166..a30b155a 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -78,7 +78,7 @@ function! s:NewBlank(count, up, visual) abort " Iterate through buffer lines let l:num = line('.') - while l:num > 0 && l:num <= line('$') + while a:up ? l:num > 1 : l:num < line('$') " If the line is blank if getline(l:num) =~# '^[ >]*$' @@ -106,7 +106,7 @@ function! s:NewBlank(count, up, visual) abort endwhile " Move to line if nonzero and not equal to the current line - if l:num && l:num != line('.') + if l:num != line('.') execute 'normal '.l:num.'G' endif |