Skip to content

Fix duplicate atoms created by setValue() with incomplete LaTeX#2964

Open
Meinzzzz wants to merge 1 commit intoarnog:masterfrom
Meinzzzz:master
Open

Fix duplicate atoms created by setValue() with incomplete LaTeX#2964
Meinzzzz wants to merge 1 commit intoarnog:masterfrom
Meinzzzz:master

Conversation

@Meinzzzz
Copy link

This pull requests aims at fixing a rendering/syncing issue, where by useing setValue() calls with incomplete LaTeX (for example \sum_{ and similar constructs) could created duplicates.
The fix changes atomIsInRange() so atoms that are already offset-in-range are considered in-range even when no non-sentinel child exists.
This ensures deletion includes partially formed atoms created from incomplete LaTeX input, preventing accumulation across sync/update cycles.
bug

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.

1 participant