aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/after/ftplugin/mail.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim
index 657c98ca..1ad4294b 100644
--- a/vim/after/ftplugin/mail.vim
+++ b/vim/after/ftplugin/mail.vim
@@ -99,8 +99,10 @@ function! s:NewBlank(start, count, up) abort
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