Revert 665c895 (neocomplete was fixed) (#512)

This commit is contained in:
Karl Yngve Lervåg 2016-08-13 12:13:03 +02:00
parent 138f6f4515
commit c9141396bf

View File

@ -51,6 +51,12 @@ function! vimtex#format#formatexpr() " {{{1
let l:lines_old = getline(l:top, l:bottom)
let l:tries = 5
" This is a hack to make undo restore the correct position
if mode() !=# 'i'
normal! ix
normal! x
endif
" Main formatting algorithm
while l:tries > 0
" Format the range of lines