diff --git a/cmd-find.c b/cmd-find.c index b0174182..45caaeba 100644 --- a/cmd-find.c +++ b/cmd-find.c @@ -389,7 +389,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; }