mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
Fix negative window index range check (> not <). Reported by Juan Pablo
in GitHub issue 1283.
This commit is contained in:
parent
f87d80737e
commit
0b3911631b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user