aboutsummaryrefslogtreecommitdiff
path: root/cmd-select-pane.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-04-29 18:42:12 +0100
committerThomas Adam <thomas@xteddy.org>2015-04-29 18:42:12 +0100
commitc0cf4843e50ae7b123613798c209f30440d73e55 (patch)
tree7e5724f11e8cbfa0a4480a6dacb04fb98ee68246 /cmd-select-pane.c
parent8794562a85ab7221b4ec3b165723faa8ca10db0a (diff)
parent69b8f100b70061ee2520fb30368a955cf39e47db (diff)
downloadrtmux-c0cf4843e50ae7b123613798c209f30440d73e55.tar.gz
rtmux-c0cf4843e50ae7b123613798c209f30440d73e55.tar.bz2
rtmux-c0cf4843e50ae7b123613798c209f30440d73e55.zip
Merge branch 'obsd-master'
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;