1
0
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:
Timo Sirainen 2000-05-10 10:00:01 +00:00 committed by cras
parent 36421bb11b
commit 240df09c45

View File

@ -272,7 +272,7 @@ static int window_refnum_prev(int refnum)
for (tmp = windows; tmp != NULL; tmp = tmp->next) { for (tmp = windows; tmp != NULL; tmp = tmp->next) {
WINDOW_REC *rec = tmp->data; 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; prev = rec->refnum;
if (max == -1 || rec->refnum > max) if (max == -1 || rec->refnum > max)
max = rec->refnum; max = rec->refnum;