1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

/SET windows_auto_renumber - should window refnums be packed when some

window is destroyed


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1047 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-01 18:32:48 +00:00 committed by cras
parent 4613196cd2
commit 3ef279fd1c

View File

@ -116,7 +116,8 @@ void window_destroy(WINDOW_REC *window)
while (window->items != NULL)
window_item_destroy(window, window->items->data);
windows_pack(window->refnum);
if (settings_get_bool("windows_auto_renumber"))
windows_pack(window->refnum);
signal_emit("window destroyed", 1, window);
@ -484,6 +485,7 @@ void windows_init(void)
active_win = NULL;
daycheck = 0; daytag = -1;
settings_add_bool("lookandfeel", "window_auto_change", FALSE);
settings_add_bool("lookandfeel", "windows_auto_renumber", TRUE);
read_settings();
signal_add("server looking", (SIGNAL_FUNC) sig_server_looking);