Merge branch 'singleoptioncrash' of https://github.com/nginth/qutebrowser into nginth-singleoptioncrash
This commit is contained in:
commit
a589c09f2e
@ -204,6 +204,8 @@ class Completer(QObject):
|
||||
parts, cursor_part = self._filter_cmdline_parts(parts, cursor_part)
|
||||
log.completion.debug("After filtering flags: parts {}, cursor_part "
|
||||
"{}".format(parts, cursor_part))
|
||||
if not parts:
|
||||
return None
|
||||
if cursor_part == 0:
|
||||
# '|' or 'set|'
|
||||
model = instances.get(usertypes.Completion.command)
|
||||
|
@ -431,3 +431,9 @@ Feature: Various utility commands.
|
||||
Given I have a fresh instance
|
||||
When I run :messages
|
||||
Then the page should contain the plaintext "No messages to show."
|
||||
|
||||
## https://github.com/The-Compiler/qutebrowser/issues/1523
|
||||
|
||||
Scenario: Completing a single option argument
|
||||
When I run :set-cmd-text -s :--
|
||||
Then no crash should happen
|
||||
|
Loading…
Reference in New Issue
Block a user