From 34be859a90385290a9edbb539f18a78c1745f8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Fri, 5 Aug 2016 08:30:22 +0200 Subject: [PATCH] Fix #512: strange problem with neocomplete --- autoload/vimtex/format.vim | 6 ------ 1 file changed, 6 deletions(-) diff --git a/autoload/vimtex/format.vim b/autoload/vimtex/format.vim index 61dce58..edbc84d 100644 --- a/autoload/vimtex/format.vim +++ b/autoload/vimtex/format.vim @@ -49,12 +49,6 @@ 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