You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this issue with the following latex snippet:
snippet begin
\begin{${1:env}}
${0}
\end{$1}
When I use this on an indented line containing just "begin", while using noexpandtab and a tabstop of 4, I get the following, as expected:
\begin{env}
\end{env}
However, if I then start typing "d" to replace "env" I get the following:
\begin{d}
\end{envd
And typing more continues to add things to the end of the last line. This is definitely a problem with indentation as changing the value of tabstop changes where the substitution happens: in particular if tabstop is 1 then it is correct. Hence somewhere in snipmate, columns are being stored/calculated as screen columns, instead of character columns. I think the following fixes the issue:
I noticed this issue with the following latex snippet:
When I use this on an indented line containing just "begin", while using noexpandtab and a tabstop of 4, I get the following, as expected:
However, if I then start typing "d" to replace "env" I get the following:
And typing more continues to add things to the end of the last line. This is definitely a problem with indentation as changing the value of
tabstop
changes where the substitution happens: in particular iftabstop
is 1 then it is correct. Hence somewhere in snipmate, columns are being stored/calculated as screen columns, instead of character columns. I think the following fixes the issue:(The issue being that indent() returns the indentation of the current line in screen columns)
The text was updated successfully, but these errors were encountered: