From de730f68a4bc97e26f8f5dcb404ed27dc489c0fd Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 8 Mar 2019 10:34:20 +0000 Subject: 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. --- cmd-copy-mode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd-copy-mode.c') diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c index 1668029c..d9471aab 100644 --- a/cmd-copy-mode.c +++ b/cmd-copy-mode.c @@ -75,10 +75,9 @@ cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item) } if (wp->mode == NULL || wp->mode->mode != &window_copy_mode) { - flag = window_pane_set_mode(wp, &window_copy_mode, NULL, NULL); + flag = window_pane_set_mode(wp, &window_copy_mode, NULL, args); if (flag != 0) return (CMD_RETURN_NORMAL); - window_copy_init_from_pane(wp, args_has(self->args, 'e')); } if (args_has(args, 'M')) { if (wp->mode != NULL && wp->mode->mode != &window_copy_mode) -- cgit