diff options
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | vim/after/ftplugin/mail.vim | 7 |
2 files changed, 7 insertions, 4 deletions
@@ -1,2 +1,2 @@ -tejr dotfiles v1.48.0 -Tue Aug 7 12:05:45 UTC 2018 +tejr dotfiles v1.49.1 +Wed Aug 8 03:01:39 UTC 2018 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 |