command_line: fix issue with digits input
This commit is contained in:
parent
e517df7836
commit
bcc9a72d97
|
@ -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):
|
||||||
|
|
Reference in a new issue