mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-10 10:53:49 -05:00
Retain cursor position after <Plug>(EasyAlign) in visual mode
This commit is contained in:
@@ -778,6 +778,9 @@ function! s:interactive(range, modes, n, d, opts, rules, vis, bvis)
|
||||
if has_key(a:rules, ch)
|
||||
let d = ch
|
||||
if !s:live
|
||||
if a:vis
|
||||
execute "normal! gv\<esc>"
|
||||
endif
|
||||
break
|
||||
endif
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user