From 58dafee9663353367906e9f0ed32dccf7bbacd4f Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 28 Jan 2013 10:11:39 -0800 Subject: [PATCH] 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. --- beets/ui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 636b3f2b0..21fd84dbf 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -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.