summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-04-09 21:20:27 +0200
committermathieui <mathieui@mathieui.net>2017-04-09 21:20:27 +0200
commitf2a0caafafc8f870faee8d3dfdf209684b58f066 (patch)
tree632a491ba74558d994fd868b2020f4a06bfd81b9
parentfa3e91aa6b2544f28d70ec4a69d7235b4149d340 (diff)
downloadpoezio-f2a0caafafc8f870faee8d3dfdf209684b58f066.tar.gz
poezio-f2a0caafafc8f870faee8d3dfdf209684b58f066.tar.bz2
poezio-f2a0caafafc8f870faee8d3dfdf209684b58f066.tar.xz
poezio-f2a0caafafc8f870faee8d3dfdf209684b58f066.zip
Fix #3149 (wipe xmltab messages for real with /clear)
-rw-r--r--poezio/tabs/xmltab.py9
1 files 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()