update the UI

This commit is contained in:
2026-09-29 10:03:15 +02:00
parent 1d29d0952d
commit 2925127110
8 changed files with 219 additions and 62 deletions
@@ -76,3 +76,10 @@ struct EditorHarness {
store.dismissDiffOverlay = { overlays.diffDismissals += 1 }
}
}
extension EditorHarness {
/// Unsaved edits on a file that is not open; opening another file never leaves these behind.
func strand(_ path: String, disk: String, buffer: String) {
store.states[path] = FileState(buffer: buffer, disk: disk)
}
}