Fix tikz indentation (#271)

This commit is contained in:
Karl Yngve Lervåg 2015-11-10 20:06:26 +01:00
parent 1bcc8e1bc2
commit 169d9764f4
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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}