On alternate-screen entry, tmux now:

- Cancels any stale 250 ms resize throttle.
  - Recalculates pane width.
  - Immediately sends the new PTY size.
  - Clears the queued resize before scheduling redraw.

This preserves the reclaimed scrollbar column and avoids broader resize behavior changes.
This commit is contained in:
Michael Grant
2026-06-30 17:52:17 +02:00
parent 90fc51542f
commit bb71ec215e

View File

@@ -3011,7 +3011,13 @@ screen_write_alternateon(struct screen_write_ctx *ctx, struct grid_cell *gc,
if (wp != NULL) { if (wp != NULL) {
window_pane_clear_resizes(wp, NULL); window_pane_clear_resizes(wp, NULL);
if (event_initialized(&wp->resize_timer))
evtimer_del(&wp->resize_timer);
layout_fix_panes(wp->window, NULL); layout_fix_panes(wp->window, NULL);
if (!TAILQ_EMPTY(&wp->resize_queue)) {
window_pane_send_resize(wp, wp->sx, wp->sy);
window_pane_clear_resizes(wp, NULL);
}
server_redraw_window_borders(wp->window); server_redraw_window_borders(wp->window);
} }