We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d05440 commit e49d6c2Copy full SHA for e49d6c2
1 file changed
plugin/surround.vim
@@ -92,7 +92,7 @@ function! s:process(string)
92
let m = matchstr(a:string,nr2char(i).'.\{-\}\ze'.nr2char(i))
93
if m != ''
94
let m = substitute(strpart(m,1),'\r.*','','')
95
- let repl_{i} = input(substitute(m,':\s*$','','').': ')
+ let repl_{i} = input(match(m,'\w\+$') >= 0 ? m.': ' : m)
96
endif
97
endfor
98
let s = ""
0 commit comments