mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Treat entering or leaving a mode as pane changed.
This commit is contained in:
parent
b7861f34ba
commit
5267ce8ff4
4
window.c
4
window.c
@ -1066,7 +1066,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;
|
||||||
wp->flags |= PANE_REDRAW;
|
wp->flags |= (PANE_REDRAW|PANE_CHANGED);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1080,7 +1080,7 @@ window_pane_reset_mode(struct window_pane *wp)
|
|||||||
wp->mode = NULL;
|
wp->mode = NULL;
|
||||||
|
|
||||||
wp->screen = &wp->base;
|
wp->screen = &wp->base;
|
||||||
wp->flags |= PANE_REDRAW;
|
wp->flags |= (PANE_REDRAW|PANE_CHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user