command_line: fix issue with digits input

This commit is contained in:
dece 2021-03-13 18:57:37 +01:00
parent e517df7836
commit bcc9a72d97

View file

@ -143,7 +143,7 @@ class CommandLine:
digits = self.gather() + chr(ch) digits = self.gather() + chr(ch)
candidates = links.disambiguate(digits, max_digits) candidates = links.disambiguate(digits, max_digits)
if len(candidates) == 1: if len(candidates) == 1:
raise TerminateCommandInterrupt(candidates) raise TerminateCommandInterrupt(candidates[0])
return ch return ch
# If not a digit but a printable character, ignore it. # If not a digit but a printable character, ignore it.
if curses.ascii.isprint(ch): if curses.ascii.isprint(ch):