mirror of
https://github.com/tmux/tmux.git
synced 2026-07-03 10:12:31 +00:00
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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user