mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-10 04:13:50 -05:00
Fix vs with selection=exclusive
This commit is contained in:
@@ -511,6 +511,7 @@ function! s:opfunc(type,...) " {{{1
|
|||||||
silent exe 'norm! `[V`]"'.reg.'y'
|
silent exe 'norm! `[V`]"'.reg.'y'
|
||||||
let type = 'V'
|
let type = 'V'
|
||||||
elseif a:type ==# "v" || a:type ==# "V" || a:type ==# "\<C-V>"
|
elseif a:type ==# "v" || a:type ==# "V" || a:type ==# "\<C-V>"
|
||||||
|
let &selection = sel_save
|
||||||
let ve = &virtualedit
|
let ve = &virtualedit
|
||||||
if !(a:0 && a:1)
|
if !(a:0 && a:1)
|
||||||
set virtualedit=
|
set virtualedit=
|
||||||
|
|||||||
Reference in New Issue
Block a user