diff options
author | nicm <nicm> | 2015-04-29 16:26:17 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-29 16:26:17 +0000 |
commit | 69b8f100b70061ee2520fb30368a955cf39e47db (patch) | |
tree | 8b01cb8be2fae674654f7709bc7a778a8e4faa4a /cmd-select-pane.c | |
parent | 7382ba82c5b366be84ca55c7842426bcf3d1f521 (diff) | |
download | rtmux-69b8f100b70061ee2520fb30368a955cf39e47db.tar.gz rtmux-69b8f100b70061ee2520fb30368a955cf39e47db.tar.bz2 rtmux-69b8f100b70061ee2520fb30368a955cf39e47db.zip |
Do not complain when directions fail.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r-- | cmd-select-pane.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c index e7f2249e..f237e8fd 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -100,10 +100,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq) wp = window_pane_find_up(wp); else if (args_has(self->args, 'D')) wp = window_pane_find_down(wp); - if (wp == NULL) { - cmdq_error(cmdq, "pane not found"); - return (CMD_RETURN_ERROR); - } + if (wp == NULL) + return (CMD_RETURN_NORMAL); if (args_has(self->args, 'e')) { wp->flags &= ~PANE_INPUTOFF; |