summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/commands.rst2
-rw-r--r--poezio/tabs/xmltab.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/source/commands.rst b/doc/source/commands.rst
index 7eebdb43..83884a6a 100644
--- a/doc/source/commands.rst
+++ b/doc/source/commands.rst
@@ -625,7 +625,7 @@ XML tab commands
Write the content of the XML buffer into a file.
- /reset
+ /filter_reset
Reset the stanza filters.
/filter_id
diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py
index 3fdaffc7..9ed7a77f 100644
--- a/poezio/tabs/xmltab.py
+++ b/poezio/tabs/xmltab.py
@@ -72,7 +72,7 @@ class XMLTab(Tab):
shortdesc="Close this tab.")
self.register_command('clear', self.command_clear,
shortdesc='Clear the current buffer.')
- self.register_command('reset', self.command_reset,
+ self.register_command('filter_reset', self.command_filter_reset,
shortdesc='Reset the stanza filter.')
self.register_command('filter_id', self.command_filter_id,
usage='<id>',
@@ -167,7 +167,7 @@ class XMLTab(Tab):
self.refresh()
except Exception as e:
self.core.information('Invalid XML Mask: %s' % e, 'Error')
- self.command_reset('')
+ self.command_filter_reset('')
@command_args_parser.raw
def command_filter_to(self, jid):
@@ -216,11 +216,11 @@ class XMLTab(Tab):
self.refresh()
except:
self.core.information('Invalid XML Path', 'Error')
- self.command_reset('')
+ self.command_filter_reset('')
@command_args_parser.ignored
- def command_reset(self):
- """/reset"""
+ def command_filter_reset(self):
+ """/filter_reset"""
if self.filters:
self.filters = []
self.filtered_buffer.del_window(self.text_win)