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:
Karl Yngve Lervåg 2016-08-02 21:20:53 +02:00
parent 3532a6930e
commit 5e4e8ef3ef

View File

@ -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