diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-08 15:05:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-08 15:05:47 +1200 |
commit | da3e1b2df154d82c9bb00dcc2209d5aaac04da8e (patch) | |
tree | 8ac722d7ec09b25dd220f3d806d568b5690593f6 /vim/after/ftplugin/mail.vim | |
parent | Merge branch 'release/v1.49.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-da3e1b2df154d82c9bb00dcc2209d5aaac04da8e.tar.gz dotfiles-da3e1b2df154d82c9bb00dcc2209d5aaac04da8e.zip |
Merge branch 'hotfix/v1.49.1'v1.49.1
* hotfix/v1.49.1:
Bump VERSION
Add a blank line
Don't jump if zero or no move
Diffstat (limited to 'vim/after/ftplugin/mail.vim')
-rw-r--r-- | vim/after/ftplugin/mail.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 657c98ca..73749893 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -97,10 +97,13 @@ function! s:NewBlank(start, count, up) abort " Move the line number or up or down depending on direction let l:num += a:up ? -1 : 1 + endwhile - " Move to line (needs jumps and marks setting) - execute 'normal '.l:num.'G' + " Move to line if nonzero and not equal to the current line + if l:num && l:num != line('.') + execute 'normal '.l:num.'G' + endif endfunction |