Skip to content

Commit

Permalink
Fix snippet range calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Jan 2, 2020
1 parent 7e86a39 commit e10d172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vsnip/session.vim
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function! s:Session.text_from_buffer(buffer, diff) abort
let l:range = self.snippet.range()

if a:diff.range.end.line == l:range.end.line
let l:range.end.character += strlen(a:diff.text)
let l:range.end.character = max([l:range.end.character, a:diff.range.end.character + strchars(a:diff.text)])
endif

let l:text = ''
Expand Down

0 comments on commit e10d172

Please sign in to comment.