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 auloadized version.
  • Loading branch information
somini committed Sep 10, 2017
2 parents c3fb500 + bb781ad commit deede81
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 @@ -234,6 +234,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 = s:process(replacement)
let before = s:extractbefore(all)
let after = s:extractafter(all)
elseif newchar !~ '\a'
let before = newchar
let after = newchar
Expand Down

0 comments on commit deede81

Please sign in to comment.