Skip to content

Commit 6c1501a

Browse files
inkarkattpope
authored andcommitted
Fix for selection=exclusive
To reproduce: :set selection=exclusive :call setline(1, '2010-10-10 i am here') :execute "normal vE\<C-a>" Expected: 2010-10-11 i am here Actual: 2010-10-10 ii am here
1 parent 2494571 commit 6c1501a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/speeddating.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ function! s:incrementvisual(count)
171171
let ve = &ve
172172
set virtualedit=all
173173
exe "norm! gv\<Esc>"
174+
if &selection ==# 'exclusive' && getpos('.') == getpos("'>")
175+
normal! h
176+
endif
174177
let vcol = virtcol('.')
175178
let lnum = line("'<")
176179
let lastrepl = ""

0 commit comments

Comments
 (0)