Skip to content

Commit

Permalink
Merge branch 'pr/97'
Browse files Browse the repository at this point in the history
Merge tpope#97
  • Loading branch information
somini committed Sep 10, 2017
2 parents e49d6c2 + 5cf3ddb commit bb781ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/surround.vim
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ function! s: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 bb781ad

Please sign in to comment.