Files
ghostty/macos
Mitchell Hashimoto 9b9bdd9647 macos: avoid publishing search selection changes
#13707

Search selection bindings update synchronously while SwiftUI is processing 
text edits. Publishing those changes re-entered view updates and could apply 
a stale String.Index range after deleting the needle.

Keep selection state out of ObservableObject publishing. Needle changes 
still schedule view updates, while selection-only select-all operations 
explicitly notify observers.

This is a bit of hail mary attempt at fixing #13707 because I couldn't
actively reproduce it. But this keeps search working fine and
conceptually addresses it.
2026-08-09 14:13:56 -07:00
..
2023-02-19 10:44:53 -08:00
2026-03-06 15:04:20 -08:00