Allow searching for double semicolons
Possibly breaks scripts using :search with ;; to split commands. A workaround is to put the :search command at the end.
This commit is contained in:
parent
9ad6cef369
commit
76dbfa7305
@ -1778,7 +1778,7 @@ class CommandDispatcher:
|
|||||||
replace=True)
|
replace=True)
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', scope='window',
|
@cmdutils.register(instance='command-dispatcher', scope='window',
|
||||||
maxsplit=0, star_args_optional=True)
|
maxsplit=0, star_args_optional=True, no_cmd_split=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.
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
space travel<br/>
|
space travel<br/>
|
||||||
/slash<br/>
|
/slash<br/>
|
||||||
-r reversed<br/>
|
-r reversed<br/>
|
||||||
|
;; semicolons<br/>
|
||||||
<a class="toselect" href="hello.txt">follow me!</a><br/>
|
<a class="toselect" href="hello.txt">follow me!</a><br/>
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
|
@ -51,6 +51,11 @@ Feature: Searching on a page
|
|||||||
And I wait for "search found -r reversed" in the log
|
And I wait for "search found -r reversed" in the log
|
||||||
Then "-r reversed" should be found
|
Then "-r reversed" should be found
|
||||||
|
|
||||||
|
Scenario: Searching with semicolons in search term
|
||||||
|
When I run :search ;; semi
|
||||||
|
And I wait for "search found ;; semi" in the log
|
||||||
|
Then ";; semi" should be found
|
||||||
|
|
||||||
# This doesn't work because this is QtWebKit behavior.
|
# This doesn't work because this is QtWebKit behavior.
|
||||||
@xfail_norun
|
@xfail_norun
|
||||||
Scenario: Searching text with umlauts
|
Scenario: Searching text with umlauts
|
||||||
|
Loading…
Reference in New Issue
Block a user