Closed ryohajika closed 1 year ago
So the basic error here is that when you make changes that add newlines and then undo those changes with ⌘+Z, the newlines you created are not removed? Is that correct?
Hi @MrDevel0per ! This involves few errors: 1) although the lines/words you edit can be disappeared by Cmd+Z, newlines (blank lines) will still remain in the text, 2) while you perform multiple Cmd+Z, you see the editor modifies other lines randomly (like @main
became @man
, struct
became strct
in the screenshots I attached), 3) the cursor jumps around.
@ryohajika Got it - seems like there might be some errors with the CodeEditTextView
's undo features. Good find!
Cool @MrDevel0per ! Let me know if there's anything I could help - apart from sending a PR on this 😂
I've got a fix for this ready. Waiting for a PR on STTextView to merge and this'll be fixed 👍
Description
When you edit text and undo changes you made, the undo(s) would be realized at some point but doesn't recover previous state and has some glitches in the text you didn't edit.
To Reproduce
.swift
file in this case, and I realized the app doesn't support opening.xcodeproj
file, which is not the point here though).Cmd+Z
multiple timesExpected Behavior
Bring back the previous state as it was originally.
Version Information
CodeEdit: 0.0.3-alpha-32 macOS: 13.3.1 (MBP "14 2021) Xcode: 14.3 (I did install the app from the released installer, not from source)