diff options
author | nicm <nicm> | 2019-03-08 10:34:20 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-08 10:34:20 +0000 |
commit | de730f68a4bc97e26f8f5dcb404ed27dc489c0fd (patch) | |
tree | e55ae16a116c303ea67fa8daf0f85172828c5374 /cfg.c | |
parent | 9cc04a0f9a62c5f4d9e643538f0f866115d6b16d (diff) | |
download | rtmux-de730f68a4bc97e26f8f5dcb404ed27dc489c0fd.tar.gz rtmux-de730f68a4bc97e26f8f5dcb404ed27dc489c0fd.tar.bz2 rtmux-de730f68a4bc97e26f8f5dcb404ed27dc489c0fd.zip |
Make the mode used to view command output (a variant of copy mode) use
its own mode definition struct with a different init function rather
than calling special setup functions.
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -348,7 +348,10 @@ cfg_show_causes(struct session *s) return; wp = s->curw->window->active; - window_copy_init_for_output(wp); + if (wp->mode == NULL || wp->mode->mode != &window_view_mode) { + window_pane_reset_mode(wp); + window_pane_set_mode(wp, &window_view_mode, NULL, NULL); + } for (i = 0; i < cfg_ncauses; i++) { window_copy_add(wp, "%s", cfg_causes[i]); free(cfg_causes[i]); |