From f70bfd248e2b991bcfb01c7cc241ec2579d1735a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 8 Mar 2019 10:34:21 +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. --- usr.bin/tmux/cmd-copy-mode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/tmux/cmd-copy-mode.c') diff --git a/usr.bin/tmux/cmd-copy-mode.c b/usr.bin/tmux/cmd-copy-mode.c index f0e41213ba7..77e03fc43f2 100644 --- a/usr.bin/tmux/cmd-copy-mode.c +++ b/usr.bin/tmux/cmd-copy-mode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-copy-mode.c,v 1.35 2019/03/07 20:24:21 nicm Exp $ */ +/* $OpenBSD: cmd-copy-mode.c,v 1.36 2019/03/08 10:34:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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 v1.2.3