diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index 34b6f208..38bf7882 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -69,7 +69,7 @@ define-command -hidden latex-indent-newline %( # indent after line ending with { try %( execute-keys -draft k \{$ j ) # deindent closing brace(s) when after cursor - try %( execute-keys -draft ^\h*\}+\h*$ hm 1 ) + try %( execute-keys -draft ^\h*\}+\h*(?:%.*)?$ \} m 1 ) # indent after line ending with \begin{...}[...]{...}, with multiple # sets of arguments possible try %(