CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
514 stars 80 forks source link

🐞 Text Formation edits not registered with Undo Manager #233

Closed thecoolwinter closed 7 months ago

thecoolwinter commented 7 months ago

Description

Edits made by text formation filters are not registered in the undo manager. This causes things like newline completions to be ignored when undoing.

To Reproduce

Make an edit that causes a text formation filter to activate (eg, inserting a tab that should be replaced with spaces) and press command-Z. The edit will not be undone correctly.

Expected Behavior

Edits from TextFormation should be able to be undone.

Version Information

CodeEditSourceEditor: 0.7.0 macOS: 14.3.1 Xcode: 15.2

Additional Context

No response

Screenshots

No response