Only redraw the pane when changing mode, not the entire window.

pull/1/head
Nicholas Marriott 2009-10-22 12:30:00 +00:00
parent eb0c33cba4
commit fd35b6f836
1 changed files with 2 additions and 2 deletions

View File

@ -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