mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-13 22:03:48 -05:00
@@ -447,7 +447,7 @@ function! s:dosurround(...) " {{{1
|
|||||||
let keeper = substitute(keeper,'^\s\+','','')
|
let keeper = substitute(keeper,'^\s\+','','')
|
||||||
let keeper = substitute(keeper,'\s\+$','','')
|
let keeper = substitute(keeper,'\s\+$','','')
|
||||||
endif
|
endif
|
||||||
if col("']") == col("$") && col('.') + 1 == col('$')
|
if col("']") == col("$") && virtcol('.') + 1 == virtcol('$')
|
||||||
if oldhead =~# '^\s*$' && a:0 < 2
|
if oldhead =~# '^\s*$' && a:0 < 2
|
||||||
let keeper = substitute(keeper,'\%^\n'.oldhead.'\(\s*.\{-\}\)\n\s*\%$','\1','')
|
let keeper = substitute(keeper,'\%^\n'.oldhead.'\(\s*.\{-\}\)\n\s*\%$','\1','')
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user