summaryrefslogtreecommitdiffstats
path: root/cmd-select-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2015-04-29 16:26:17 +0000
committernicm <nicm>2015-04-29 16:26:17 +0000
commit69b8f100b70061ee2520fb30368a955cf39e47db (patch)
tree8b01cb8be2fae674654f7709bc7a778a8e4faa4a /cmd-select-pane.c
parent7382ba82c5b366be84ca55c7842426bcf3d1f521 (diff)
Do not complain when directions fail.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r--cmd-select-pane.c6
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;