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 Jun 2, 2018
1 parent d959a38 commit 90cc0f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/surround.vim
Expand Up @@ -244,6 +244,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 90cc0f3

Please sign in to comment.