/WINDOW NUMBER: -sticky option added. Closing windows before a sticky

window won't change refnum of the sticky window and windows after it


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1046 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-01 18:30:23 +00:00 committed by cras
commit 4613196cd2
3 changed files with 25 additions and 7 deletions

View file

@ -93,7 +93,8 @@ static void windows_pack(int removed_refnum)
for (refnum = removed_refnum+1;; refnum++) {
window = window_find_refnum(refnum);
if (window == NULL) break;
if (window == NULL || window->sticky_refnum)
break;
window_set_refnum(window, refnum-1);
}