Join text arguments for :search
This commit is contained in:
parent
6151d077e5
commit
423192e9c9
@ -1778,14 +1778,16 @@ class CommandDispatcher:
|
|||||||
replace=True)
|
replace=True)
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', scope='window',
|
@cmdutils.register(instance='command-dispatcher', scope='window',
|
||||||
maxsplit=0)
|
maxsplit=0, star_args_optional=True)
|
||||||
def search(self, text="", reverse=False):
|
def search(self, *text, reverse=False):
|
||||||
"""Search for a text on the current page. With no text, clear results.
|
"""Search for a text on the current page. With no text, clear results.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
text: The text to search for.
|
text: The text to search for.
|
||||||
reverse: Reverse search direction.
|
reverse: Reverse search direction.
|
||||||
"""
|
"""
|
||||||
|
text = ' '.join(text)
|
||||||
|
|
||||||
self.set_mark("'")
|
self.set_mark("'")
|
||||||
tab = self._current_widget()
|
tab = self._current_widget()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user