summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Core.zig b/core/Core.zig
index 72e92212..4c8c98dd 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -949,8 +949,9 @@ fn reportFocus(p: *Pardes) void {
// A client's own step records what it told and writes nothing: the
// session's step makes the write, off the tape on both sides
// (tape.hostCall's pty_write), so the switch shows at once and the
- // program hears of it a round trip later.
- if (p.tape.speculating and p.tape.screen_state) return;
+ // 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| {
if (pane.serial == old.serial and pardes.Term.modes(pane.terminal).focus) p.emitWrite(old.id, "\x1b[O");
};