Join text arguments for :search

This commit is contained in:
Jay Kamat 2018-04-01 20:46:52 -04:00
parent 6151d077e5
commit 423192e9c9
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -1778,14 +1778,16 @@ class CommandDispatcher:
replace=True)
@cmdutils.register(instance='command-dispatcher', scope='window',
maxsplit=0)
def search(self, text="", reverse=False):
maxsplit=0, star_args_optional=True)
def search(self, *text, reverse=False):
"""Search for a text on the current page. With no text, clear results.
Args:
text: The text to search for.
reverse: Reverse search direction.
"""
text = ' '.join(text)
self.set_mark("'")
tab = self._current_widget()