Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2018-03-17 18:02:26 +00:00
commit c8a706117f

View File

@ -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;
}