-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exceptions thrown when undoing (SwiftUI, macOS) #29
Comments
Given the stack trace, this seems like it might be an apple bug:
|
This change works around the behavior: audulus@b724bc8 Undo still works, but each undo will change a single character, instead of the typical smarter NSTextView behavior. |
Single character undo seems like a pretty serious breakage. Is there really no other approach here? |
@twostraws I'm not sure. There's a somewhat similar bug with SwiftUI's |
To reproduce (macOS 11.6 (20G165)):
*** -[NSBigMutableString substringWithRange:]: Range {14, 1} out of bounds; string length 14
__redoCommonDoSingle:: NSUndoManager 0x600003d12580 is in invalid state, do not invoke this method while undoing
UndoTest.zip
The text was updated successfully, but these errors were encountered: