Skip to content

Commit 2ee193a

Browse files
committed
Merge branch 'pr/97'
Apply tpope#97 to the autoloadized version.
1 parent 924a87e commit 2ee193a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

autoload/surround.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ function! surround#wrap(string,char,type,removed,special)
239239
elseif newchar == "\<C-[>" || newchar == "\<C-]>"
240240
let before = "{\n\t"
241241
let after = "\n}"
242+
elseif newchar ==# 'o'
243+
let replacement = substitute(input(">> "),"\\\\r","\r", '')
244+
let all = support#process(replacement)
245+
let before = support#extractbefore(all)
246+
let after = support#extractafter(all)
242247
elseif newchar !~ '\a'
243248
let before = newchar
244249
let after = newchar

0 commit comments

Comments
 (0)