Fix #417
This commit is contained in:
parent
a12e11f1fb
commit
e9dbfa1d60
@ -113,7 +113,11 @@ endfunction
|
|||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
function! s:indent_tikz(lnum, prev) " {{{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_starts = a:prev =~# s:tikz_commands
|
||||||
let l:prev_stops = a:prev =~# ';\s*$'
|
let l:prev_stops = a:prev =~# ';\s*$'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user