diff options
-rw-r--r-- | poezio/tabs/xmltab.py | 9 |
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() |