diff options
Diffstat (limited to 'core/Core.zig')
| -rw-r--r-- | core/Core.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Core.zig b/core/Core.zig index 5ce635f2..b4d6293e 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -1029,7 +1029,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"); |
