From 4613196cd26f9eb593001d1b04568b452b1bb365 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 1 Jan 2001 18:30:23 +0000 Subject: /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 --- src/fe-common/core/fe-windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fe-common/core/fe-windows.c') diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index 1e754347..0103c260 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -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); } -- cgit v1.2.3