From f2a0caafafc8f870faee8d3dfdf209684b58f066 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 9 Apr 2017 21:20:27 +0200 Subject: Fix #3149 (wipe xmltab messages for real with /clear) --- poezio/tabs/xmltab.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py index cd49724c..65491bf4 100644 --- a/poezio/tabs/xmltab.py +++ b/poezio/tabs/xmltab.py @@ -276,12 +276,9 @@ class XMLTab(Tab): """ /clear """ - if self.filters: - buffer = self.core_buffer - else: - buffer = self.filtered_buffer - buffer.messages = [] - self.text_win.rebuild_everything(buffer) + self.core_buffer.messages = [] + self.filtered_buffer.messages = [] + self.text_win.rebuild_everything(self.filtered_buffer) self.refresh() self.core.doupdate() -- cgit v1.2.3