diff options
author | 2019-03-07 19:34:22 +0000 | |
---|---|---|
committer | 2019-03-07 19:34:22 +0000 | |
commit | eb1a5643427af86ef10ab8f7d4310dd5d372e1cd (patch) | |
tree | a2de0c3d070c4e738ab1603898d4abf70ed62038 /usr.bin/tmux/cmd-run-shell.c | |
parent | Make adding mode formats a function pointer as well. (diff) | |
download | wireguard-openbsd-eb1a5643427af86ef10ab8f7d4310dd5d372e1cd.tar.xz wireguard-openbsd-eb1a5643427af86ef10ab8f7d4310dd5d372e1cd.zip |
Tidy changing the mode into window_copy_init_for_output.
Diffstat (limited to 'usr.bin/tmux/cmd-run-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-run-shell.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c index cbb4a888cc9..29ffcb440b8 100644 --- a/usr.bin/tmux/cmd-run-shell.c +++ b/usr.bin/tmux/cmd-run-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-run-shell.c,v 1.55 2018/08/27 11:03:34 nicm Exp $ */ +/* $OpenBSD: cmd-run-shell.c,v 1.56 2019/03/07 19:34:22 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -75,10 +75,8 @@ cmd_run_shell_print(struct job *job, const char *msg) return; } - if (window_pane_set_mode(wp, &window_copy_mode, NULL, NULL) == 0) - window_copy_init_for_output(wp); - if (wp->mode == &window_copy_mode) - window_copy_add(wp, "%s", msg); + window_copy_init_for_output(wp); + window_copy_add(wp, "%s", msg); } static enum cmd_retval |