mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-28 13:23:50 +00:00
Only redraw the pane when changing mode, not the entire window.
This commit is contained in:
parent
eb0c33cba4
commit
fd35b6f836
1 changed files with 2 additions and 2 deletions
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)
|
||||
wp->screen = s;
|
||||
server_redraw_window(wp->window);
|
||||
wp->flags |= PANE_REDRAW;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
@ -624,7 +624,7 @@ window_pane_reset_mode(struct window_pane *wp)
|
|||
wp->mode = NULL;
|
||||
|
||||
wp->screen = &wp->base;
|
||||
server_redraw_window(wp->window);
|
||||
wp->flags |= PANE_REDRAW;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue