Skip to content

Commit 643a424

Browse files
committed
Fix yss adding newlines
1 parent 4e7d573 commit 643a424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/surround.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ nnoremap <silent> <Plug>SurroundRepeat .
573573
nnoremap <silent> <Plug>Dsurround :<C-U>call <SID>dosurround(<SID>inputtarget())<CR>
574574
nnoremap <silent> <Plug>Csurround :<C-U>call <SID>changesurround()<CR>
575575
nnoremap <silent> <Plug>CSurround :<C-U>call <SID>changesurround(1)<CR>
576-
nnoremap <expr> <Plug>Yssurround <SID>opfunc('setup').'_'
576+
nnoremap <expr> <Plug>Yssurround <SID>opfunc('setup').'g_'
577577
nnoremap <expr> <Plug>YSsurround <SID>opfunc2('setup').'_'
578578
nnoremap <expr> <Plug>Ysurround <SID>opfunc('setup')
579579
nnoremap <expr> <Plug>YSurround <SID>opfunc2('setup')

0 commit comments

Comments
 (0)