Skip to content

Commit

Permalink
Don't replace placeholders incorrectly when expandtab=0
Browse files Browse the repository at this point in the history
Fixes issue garbas#143
  • Loading branch information
fish-face committed Jan 21, 2014
1 parent 49cf485 commit 7af911d
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 @@ -79,7 +79,7 @@ fun! snipMate#expandSnip(snip, col)
endif

" Insert snippet with proper indentation
let indent = indent(lnum) + 1
let indent = match(line, '\S\|$') + 1
call setline(lnum, line . snipLines[0])
call append(lnum, map(snipLines[1:], "empty(v:val) ? v:val : '" . strpart(line, 0, indent - 1) . "' . v:val"))

Expand Down

0 comments on commit 7af911d

Please sign in to comment.