Skip to content

Commit

Permalink
Merge branch 'pr/97'
Browse files Browse the repository at this point in the history
Apply tpope#97 to the autoloadized version.
  • Loading branch information
somini committed Jun 2, 2018
1 parent 924a87e commit 2ee193a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/surround.vim
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ function! surround#wrap(string,char,type,removed,special)
elseif newchar == "\<C-[>" || newchar == "\<C-]>"
let before = "{\n\t"
let after = "\n}"
elseif newchar ==# 'o'
let replacement = substitute(input(">> "),"\\\\r","\r", '')
let all = support#process(replacement)
let before = support#extractbefore(all)
let after = support#extractafter(all)
elseif newchar !~ '\a'
let before = newchar
let after = newchar
Expand Down

0 comments on commit 2ee193a

Please sign in to comment.