Do not complain when directions fail.
authornicm <nicm@openbsd.org>
Wed, 29 Apr 2015 16:26:17 +0000 (16:26 +0000)
committernicm <nicm@openbsd.org>
Wed, 29 Apr 2015 16:26:17 +0000 (16:26 +0000)
usr.bin/tmux/cmd-select-pane.c

index e8f50d3..85cfc40 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.22 2015/04/27 07:49:36 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.23 2015/04/29 16:26:17 nicm Exp $ */
 
 /*
  * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;