CodeEditApp / CodeEditSourceEditor

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

🐞 Using ⌘ + Z will crash CodeEdit #201

Closed CippoX closed 1 year ago

CippoX commented 1 year ago

Description

It is possible, but not so common, for CodeEdit to crash when using ⌘ + Z, this seems to be part of a general issue with the Undo feature

To Reproduce

  1. Open any file
  2. Go to the end of the file and press Enter + Backspace at least two times
  3. Use ⌘ + Z multiple times until the application crashes

Expected Behavior

The previous actions should be restored

Version Information

CodeEdit: 0.0.3-alpha

Additional Context

No response

Screenshots

https://github.com/CodeEditApp/CodeEdit/assets/62521219/69bfd1db-5c13-49bc-830a-d78238521195