Fix #512: strange problem with neocomplete
This commit is contained in:
parent
665c895ace
commit
34be859a90
@ -49,12 +49,6 @@ function! vimtex#format#formatexpr() " {{{1
|
|||||||
let l:lines_old = getline(l:top, l:bottom)
|
let l:lines_old = getline(l:top, l:bottom)
|
||||||
let l:tries = 5
|
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
|
" Main formatting algorithm
|
||||||
while l:tries > 0
|
while l:tries > 0
|
||||||
" Format the range of lines
|
" Format the range of lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user