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
tsd on right parenthesis does not toggle auto-size variant #772
Comments
To be precise, it does toggle auto-size, but on the surrounding delimiters (if they exist):
toggles to
So unlike the opening delimiter, the closing delimiter is not counted as part of the expression. Maybe some |
Ah, so. I knew this would come up. I've "exploited" this behaviour in order to make the text objects easy to "increase" when repeated (in visual mode). But I guess that's cheating... |
To be more specific: If you do So, I'll have to think of a different strategy... |
Ok, I'm pushing a fix now. I think it solves this issue while retaining the correct behaviour for |
Are you sure that Try this |
Haha, that's turned out to be a completely different bug. If you test before you update: Note that this only occurs if you test on line 1 of the input file. If you add some lines in front, things work as expected. But I fixed it now. I hope... :) |
Yes, it works now. Great to see this fixed. As always: thank you very much for your fast fix and support of vimtex. |
test tex file:
Cursor on
)
,]
or\}
and pressingtsd
does not change to$\left(hello\right)$
.It works in following cases as long as the cursor is not on the last character (the
e
of\rangle
, thet
of\rvert
and the finalr
of\rfloor
).The text was updated successfully, but these errors were encountered: