mirror of https://github.com/tmux/tmux.git
Fix negative window index range check (> not <). Reported by Juan Pablo
in GitHub issue 1283.pull/1289/head
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