aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd-find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-find.c b/cmd-find.c
index 7c52c71c..84b13126 100644
--- a/cmd-find.c
+++ b/cmd-find.c
@@ -390,7 +390,7 @@ cmd_find_get_window_with_session(struct cmd_find_state *fs, const char *window)
return (-1);
fs->idx = s->curw->idx + n;
} else {
- if (n < s->curw->idx)
+ if (n > s->curw->idx)
return (-1);
fs->idx = s->curw->idx - n;
}