mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
A few more bugfixes to make /window prev work.. :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@206 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
36421bb11b
commit
240df09c45
@ -272,7 +272,7 @@ static int window_refnum_prev(int refnum)
|
||||
for (tmp = windows; tmp != NULL; tmp = tmp->next) {
|
||||
WINDOW_REC *rec = tmp->data;
|
||||
|
||||
if (rec->refnum < refnum && (max == -1 || rec->refnum > max))
|
||||
if (rec->refnum < refnum && (prev == -1 || rec->refnum > prev))
|
||||
prev = rec->refnum;
|
||||
if (max == -1 || rec->refnum > max)
|
||||
max = rec->refnum;
|
||||
|
Loading…
Reference in New Issue
Block a user