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
The action of adding a snippet adds multiple lines and thus exposes the lack of checking whether the invalidated line range is out of bounds. The call stack shows that the exception is ultimately thrown by TextMateSharp because it attempts to read the line at the given index, without checking whether it's in bounds. This can be retrieved via the GetNumberOfLines() method from the model, and evaluated such that InvalidateLineRange(int, int) doesn't run the loop with out of bounds indexes.
How to simulate:
AvaloniaEdit.sln
AvaloniaEdit.Demo
Enter
keyInsert Snipet
aaa
and pressEnter
key for confirm the changeCTRL+Z
four timesThe text was updated successfully, but these errors were encountered: