Skip to content
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

Delimiter editing fixes #1932

Merged
merged 5 commits into from
Apr 18, 2023
Merged

Conversation

mgreminger
Copy link
Contributor

Fixes #1656 and #1742 (#1742 is a duplicate of #1656). This pull request also fixes a regression of #1691 (the #1691 regression occurred since 0.91.2, I didn't determine exactly which commit introduced the regression).

Additionally, fixes issue where deleting left delimiter and retyping left delimiter did not trigger an input event.

End-to-end tests have been added for these fixes and the previous delimiter issues (#1691, #1375, and #1845) to make sure regressions were not introduced with these changes and to make sure any regressions on these issues will be detected in the future.

Add regression tests for arnog#1691, arnog#1375, and arnog#1845

Add failing test for arnog#1656 and arnog#1742 and for issue where deleting and re-adding left delimiter doesn't trigger input event.
Also fixes issue where, when left delimiter was deleted and replaced, a input event was not triggered.
Fixes issues when deleting left delimiter and replacing it inside and outside the leftright atom. Based off of implementation for same situation on right delimiter since that case worked well.

Added tests for both the fixed left delimiter cases and the already working right delimiter cases.
@mgreminger
Copy link
Contributor Author

I added some additional fixes that handle cases where the left delimiter is deleted and replace either inside or outside of the LeftRight atom. I based it on how this is currently handled for the right delimiter case. I've added tests for both the left delimiter and right delimiter cases.

@arnog arnog merged commit 3138186 into arnog:master Apr 18, 2023
@arnog
Copy link
Owner

arnog commented Apr 18, 2023

Thank you!

@mgreminger mgreminger deleted the indeterminate-delimiter-fix branch April 21, 2023 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: deleting a \right command should remove the matching \left
2 participants