mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Allow multiple modes to be open in a pane. A stack of open modes is kept
and the previous restored when the top is exited. If a mode that is already on the stack is entered, the existing instance is moved to the top as the active mode rather than being opened new.
This commit is contained in:
@ -136,6 +136,9 @@ window_clock_timer_callback(__unused int fd, __unused short events, void *arg)
|
||||
evtimer_del(&data->timer);
|
||||
evtimer_add(&data->timer, &tv);
|
||||
|
||||
if (TAILQ_FIRST(&wp->modes) != wme)
|
||||
return;
|
||||
|
||||
t = time(NULL);
|
||||
gmtime_r(&t, &now);
|
||||
gmtime_r(&data->tim, &then);
|
||||
@ -144,7 +147,7 @@ window_clock_timer_callback(__unused int fd, __unused short events, void *arg)
|
||||
data->tim = t;
|
||||
|
||||
window_clock_draw_screen(wme);
|
||||
server_redraw_window(wp->window);
|
||||
wp->flags |= PANE_REDRAW;
|
||||
}
|
||||
|
||||
static struct screen *
|
||||
|
Reference in New Issue
Block a user