From 28df18379fa65e9d6bf8a12908218c150af1f613 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 25 Mar 2014 11:47:46 +0100 Subject: core: save/restore buffer property "clear" on /upgrade --- src/core/wee-upgrade.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c index ad7b0b505..ccc24ef37 100644 --- a/src/core/wee-upgrade.c +++ b/src/core/wee-upgrade.c @@ -481,6 +481,17 @@ upgrade_weechat_read_cb (void *data, { upgrade_current_buffer->day_change = 1; } + if (infolist_search_var (infolist, "clear")) + { + upgrade_current_buffer->clear = + infolist_integer (infolist, "clear"); + } + else + { + upgrade_current_buffer->clear = + (upgrade_current_buffer->type == GUI_BUFFER_TYPE_FREE) ? + 0 : 1; + } upgrade_current_buffer->nicklist_case_sensitive = infolist_integer (infolist, "nicklist_case_sensitive"); upgrade_current_buffer->nicklist_display_groups = -- cgit v1.2.3