-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing environments with ]] - indentation broken #2229
Comments
After running |
Thanks, I agree this is a regression. However, I think the reasoning behind the faulty commit is still good, so I'm pushing an alternative fix to this that I believe should fix the issue and keep the recently updated indent behaviour. See also #2227 for more info on the related change to the indentkeys option. |
Regarding this issue, for some reason I tend to type out the Although I don't see any easy way to fix this issue -- perhaps add Another (not very related and exists already before this commit) but I only notice this now somehow. I'm not sure if this should be supported too) for some code like this \documentclass[12pt]{article}
\begin{document}
\begin{enumerate}
\item
\end{enumerate} % (1)
\end{document} On the line If the whole documentation is |
No,
You are right that it could be prudent to avoid returning a negative value. But I can't reproduce the issue from your example. |
Description
When closing off an opened environment by typing
]]
the indentation breaks.A bisect shows this is likely caused by commit f9d07de.
Steps to reproduce
minimal.vim:
minimal.tex:
vi -u minimal.vim minimal.tex
o]]
.Expected behavior
Actual behavior
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: