Fix login when only one entry is available
This commit is contained in:
parent
948866f4f2
commit
a1776087e0
@ -219,11 +219,12 @@ def run(args):
|
|||||||
args.dmenu_invocation,
|
args.dmenu_invocation,
|
||||||
args.io_encoding)
|
args.io_encoding)
|
||||||
|
|
||||||
if selection not in candidates_map:
|
if selection not in candidates_map:
|
||||||
stderr("'{}' was not a valid entry!").format(selection)
|
stderr("'{}' was not a valid entry!").format(selection)
|
||||||
return ExitCodes.USER_QUIT
|
return ExitCodes.USER_QUIT
|
||||||
|
|
||||||
|
selection = candidates_map[selection]
|
||||||
|
|
||||||
selection = candidates_map[selection]
|
|
||||||
username, password = candidate_to_secret(selection)
|
username, password = candidate_to_secret(selection)
|
||||||
|
|
||||||
insert_mode = ';; enter-mode insert' if args.insert_mode else ''
|
insert_mode = ';; enter-mode insert' if args.insert_mode else ''
|
||||||
|
Loading…
Reference in New Issue
Block a user