Skip to content

exceptions thrown when undoing (SwiftUI, macOS) #29

@wtholliday

Description

@wtholliday

To reproduce (macOS 11.6 (20G165)):

  1. Run attached project
  2. Create a new document
  3. Place insertion point at the end of the document
  4. Add two characters
  5. Undo 2x
  6. Observe: *** -[NSBigMutableString substringWithRange:]: Range {14, 1} out of bounds; string length 14
  7. Redo.
  8. Observe: __redoCommonDoSingle:: NSUndoManager 0x600003d12580 is in invalid state, do not invoke this method while undoing

UndoTest.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions