mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +00:00
Only redraw the pane when changing mode, not the entire window.
This commit is contained in:
parent
eb0c33cba4
commit
fd35b6f836
4
window.c
4
window.c
@ -610,7 +610,7 @@ window_pane_set_mode(struct window_pane *wp, const struct window_mode *mode)
|
|||||||
|
|
||||||
if ((s = wp->mode->init(wp)) != NULL)
|
if ((s = wp->mode->init(wp)) != NULL)
|
||||||
wp->screen = s;
|
wp->screen = s;
|
||||||
server_redraw_window(wp->window);
|
wp->flags |= PANE_REDRAW;
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -624,7 +624,7 @@ window_pane_reset_mode(struct window_pane *wp)
|
|||||||
wp->mode = NULL;
|
wp->mode = NULL;
|
||||||
|
|
||||||
wp->screen = &wp->base;
|
wp->screen = &wp->base;
|
||||||
server_redraw_window(wp->window);
|
wp->flags |= PANE_REDRAW;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user