gh-133363: Fix Cmd completion for lines beginning with ! (#133364)

This commit is contained in:
Matt Wozniski 2025-05-03 22:50:37 -04:00 committed by GitHub
parent 3b4333583f
commit 1d9406e426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 1 deletions

View file

@ -273,7 +273,7 @@ class Cmd:
endidx = readline.get_endidx() - stripped
if begidx>0:
cmd, args, foo = self.parseline(line)
if cmd == '':
if not cmd:
compfunc = self.completedefault
else:
try: