1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

/WINDOW DOWN and /WINDOW UP now cycle to highest/lowest window.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2024 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-15 20:49:12 +00:00 committed by cras
parent fc91857029
commit 23fe491e84

View File

@ -821,6 +821,8 @@ static void cmd_window_up(void)
MAIN_WINDOW_REC *rec;
rec = mainwindows_find_upper(active_mainwin->first_line);
if (rec == NULL)
rec = mainwindows_find_upper(term_height);
if (rec != NULL)
window_set_active(rec->active);
}
@ -831,6 +833,8 @@ static void cmd_window_down(void)
MAIN_WINDOW_REC *rec;
rec = mainwindows_find_lower(active_mainwin->last_line);
if (rec == NULL)
rec = mainwindows_find_lower(-1);
if (rec != NULL)
window_set_active(rec->active);
}