Skip to content

Commit

Permalink
Adjust indentation of {VISUAL} replacement
Browse files Browse the repository at this point in the history
Fixes #177
  • Loading branch information
ajzafar committed Nov 26, 2014
1 parent e6eb057 commit 76ea4a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/snipMate.vim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ fun! s:ProcessSnippet(snip)
else
let visual = ''
endif
let snippet = substitute(snippet,'{VISUAL}', escape(visual,'%\'), 'g')
let snippet = substitute(snippet, '\n\(\t\+\).\{-\}\zs{VISUAL}',
\ substitute(escape(visual, '%\'), "\n", "\n\\\\1", 'g'), 'g')

" Evaluate eval (`...`) expressions.
" Backquotes prefixed with a backslash "\" are ignored.
Expand Down

0 comments on commit 76ea4a6

Please sign in to comment.