Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion indent/tex.vim
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function! VimtexIndent(lnum) abort " {{{1

" Use previous indentation for comments
if l:line =~# '^\s*%'
return indent(a:lnum)
return indent(l:prev_lnum)
endif

" Remove comments before subsequent checks
Expand Down
4 changes: 2 additions & 2 deletions test/test-indentation/test_tikz_reference.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
\begin{tikzpicture}
\draw [solid] let \p{I} = (0,0) in (1,1) -|
(\x{I}-1cm,-1cm) node [yshift=-.25cm] {(i)};
% Just some comment
% Just some comment
\end{tikzpicture}

\begin{tikzpicture}
Expand All @@ -19,7 +19,7 @@
(\x{I}-.75cm,-2.5)
node [yshift=-.25cm] {(i)};

% (ii) outer conductor of the contact head
% (ii) outer conductor of the contact head
\coordinate (outerContactHead) at (.8,-1.7);
\draw [solid] let \p{O} = (outerContactHead)
in (outerContactHead) -- (\x{O},-2.5)
Expand Down