mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
input_options: fix highlighting when require is on
Previously, even when `require` was True, the first option was highlighted as if it were the default.
This commit is contained in:
parent
cc0e9112b4
commit
58dafee966
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ def input_options(options, require=False, prompt=None, fallback_prompt=None,
|
|||
index = option.index(found_letter)
|
||||
|
||||
# Mark the option's shortcut letter for display.
|
||||
if (default is None and not numrange and first) \
|
||||
if (not require and default is None and not numrange and first) \
|
||||
or (isinstance(default, basestring) and
|
||||
found_letter.lower() == default.lower()):
|
||||
# The first option is the default; mark it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue