Open jojo2357 opened 3 months ago
I agree but on the condition that we can ensure the \right)
is only inserted if the )
is inserted, so if there is no matching )
already present, for example \left<caret> (...) \right)
That did not fix my issue.
My test, characterized by:
$\left<caret> $
typing (
expected:
$\left(<caret>\right) $
actual:
$\left(<caret>) $
the unit test described above can be characterized below:
fun testCorrectPairedBrace() {
myFixture.configureByText(LatexFileType, """$\left<caret>$""")
myFixture.type('(')
myFixture.checkResult("""$\left(<caret>\right)$""")
}
Is not fixed by c20606a
. #3562 did fix a fun bug, but not this issue.
Please reopen/
Thanks, closed this by mistake
In a math environment, doing
\left(
should, imo, automatically insert\right)
rather than)
IE
\left<carret>
-> type(
->\left(<caret>)
expected\left<carret>
-> type(
->\left(<caret>\right)