aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-08 15:06:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-08 15:06:13 +1200
commitd8d216c968ab46e5718c3d4c600a9eb44f64bb1a (patch)
tree8ac722d7ec09b25dd220f3d806d568b5690593f6
parentBump VERSION (diff)
parentBump VERSION (diff)
downloaddotfiles-d8d216c968ab46e5718c3d4c600a9eb44f64bb1a.tar.gz
dotfiles-d8d216c968ab46e5718c3d4c600a9eb44f64bb1a.zip
Merge branch 'hotfix/v1.49.1' into develop
* hotfix/v1.49.1: Bump VERSION Add a blank line Don't jump if zero or no move
-rw-r--r--VERSION4
-rw-r--r--vim/after/ftplugin/mail.vim7
2 files changed, 7 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index 81d5a2ad..aaf629b3 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v1.49.0
-Wed Aug 8 02:51:37 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