Skip to content

Commit

Permalink
Remove the last newline in a visual replacement
Browse files Browse the repository at this point in the history
Fixes #178
  • Loading branch information
ajzafar committed Nov 27, 2014
1 parent 76ea4a6 commit 8cb6c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/snipMate.vim
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fun! s:ProcessSnippet(snip)
let esc_bslash = '\%(\\\@<!\%(\\\\\)*\)\@<='

if exists('b:snipmate_content_visual')
let visual = b:snipmate_content_visual
let visual = substitute(b:snipmate_content_visual, "\n$", '', '')
unlet b:snipmate_content_visual
else
let visual = ''
Expand Down

0 comments on commit 8cb6c3e

Please sign in to comment.