summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig
index 237693fa..e9c9b1d3 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -945,7 +945,9 @@ pub const Pane = struct {
/// replica by its authority (the next delta says), on such an authority
/// once the step's unit is out (`resizeDeferred`).
pub fn resizeGrid(pane: *Pane, cols: u16, rows: u16) void {
- if (tape.authorityOnly("resize a terminal")) return;
+ // A screen-state client's speculation does what its replay does
+ // (its selections, never the grid): it waits for no round trip.
+ if (!tape.screenState() and tape.authorityOnly("resize a terminal")) return;
const state = pane.terminal orelse return;
if (cols != pane.cols) for (0..pane.sel.len) |button| {
pane.clearPointerSelection(button);