This commit is contained in:
Karl Yngve Lervåg 2016-04-05 13:58:11 +02:00
parent a12e11f1fb
commit e9dbfa1d60

View File

@ -113,7 +113,11 @@ endfunction
" }}}1
function! s:indent_tikz(lnum, prev) " {{{1
if vimtex#env#is_inside('tikzpicture')
let l:winview = winsaveview()
let l:inside_tikzpicture = vimtex#env#is_inside('tikzpicture')
call winrestview(l:winview)
if l:inside_tikzpicture
let l:prev_starts = a:prev =~# s:tikz_commands
let l:prev_stops = a:prev =~# ';\s*$'