Fixed silly issue for older vims
For some reason, on Vim 7.4.5 (tested with Travis), the line l:lines_old = l:lines_old[l:index:] did not work properly. This works properly with newer Vims, but this commit fixes it for older Vims.
This commit is contained in:
parent
3532a6930e
commit
5e4e8ef3ef
@ -66,7 +66,7 @@ function! vimtex#format#formatexpr() " {{{1
|
||||
let l:index = s:compare_lines(l:lines_new, l:lines_old)
|
||||
let l:top += l:index
|
||||
if l:top > l:bottom | break | endif
|
||||
let l:lines_old = l:lines_new[l:index:]
|
||||
let l:lines_old = l:lines_new[l:index : -1]
|
||||
let l:tries -= 1
|
||||
endwhile
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user