summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 22:35:45 -0300
committerGabriel Schneider <[email protected]>2026-11-24 22:39:59 -0300
commit1dd5ae7a37588c42ae4b612deb767847b8a5a020 (patch)
treed6cfb4216b30c1325626585993b508b1dee00f61 /core/Core.zig
parentbba7752a55bd51e87e9f11231428e369553787da (diff)
parent8c083912002f5cfdf268ed45ec217fbd8bde41d0 (diff)
downloadpardes-1dd5ae7a37588c42ae4b612deb767847b8a5a020.tar.gz
pardes-1dd5ae7a37588c42ae4b612deb767847b8a5a020.zip
walk UI M2: A2's xqqlroux merged in (TagState.loaded from dump.zig afterLoad: a loaded tag state that indexes past what it names is at rest; Core.reportFocus asks no pane past MAX_PANES), no conflict; tui core-test 1032/1201 (169 skipped, 0 failed)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Core.zig b/core/Core.zig
index 296f4159..e8b5c024 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -1037,7 +1037,8 @@ fn reportFocus(p: *Pardes) void {
// program hears of it a round trip later (a write there would stop the
// speculation: pty_write is `keeps_stopping`'s).
if (p.tape.speculating) return;
- if (v.focus_told) |old| if (p.panes[old.id]) |pane| {
+ // A damaged dump's pane past the slots names none.
+ if (v.focus_told) |old| if (old.id < MAX_PANES) if (p.panes[old.id]) |pane| {
if (pane.serial == old.serial and pardes.Term.modes(pane.terminal).focus) p.emitWrite(old.id, "\x1b[O");
};
if (want) |new| if (pardes.Term.modes(p.panes[new.id].?.terminal).focus) p.emitWrite(new.id, "\x1b[I");