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:
Jay Kamat 2018-04-05 17:20:50 -04:00
parent 9ad6cef369
commit 76dbfa7305
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5
3 changed files with 7 additions and 1 deletions

View File

@ -1778,7 +1778,7 @@ class CommandDispatcher:
replace=True)
@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):
"""Search for a text on the current page. With no text, clear results.

View File

@ -17,6 +17,7 @@
space travel<br/>
/slash<br/>
-r reversed<br/>
;; semicolons<br/>
<a class="toselect" href="hello.txt">follow me!</a><br/>
</p>
</body>

View File

@ -51,6 +51,11 @@ Feature: Searching on a page
And I wait for "search found -r reversed" in the log
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.
@xfail_norun
Scenario: Searching text with umlauts