Fix tikz indentation (#271)
This commit is contained in:
parent
1bcc8e1bc2
commit
169d9764f4
@ -118,7 +118,7 @@ function! VimtexIndent() " {{{1
|
||||
let ind += &sw
|
||||
let s:tikz_indented += 1
|
||||
endif
|
||||
if s:tikz_indented > 0 && pline =~# ';\s*$'
|
||||
if s:tikz_indented > 0 && pline =~# ';'
|
||||
let ind -= &sw
|
||||
let s:tikz_indented -= 1
|
||||
endif
|
||||
|
@ -1,6 +1,11 @@
|
||||
\documentclass{minimal}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{tikz}
|
||||
\begin{document}
|
||||
|
||||
\tikz \fill[green] rectangle (0.5,0.5); Something
|
||||
about something.
|
||||
|
||||
\begin{align}
|
||||
2+2=4
|
||||
\end{align}
|
||||
|
Loading…
Reference in New Issue
Block a user