mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
fix conditional
This commit is contained in:
parent
0ec02095ac
commit
6dd55b736c
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class Completer(object):
|
|||
if os.path.isdir(s.rstrip()):
|
||||
s = s.rstrip() + slash
|
||||
rtn.add(s)
|
||||
if len(rtn) != 0:
|
||||
if len(rtn) == 0:
|
||||
rtn = self.path_complete(prefix)
|
||||
return sorted(rtn)
|
||||
elif cmd not in ctx and cmd not in XONSH_TOKENS:
|
||||
|
|
Loading…
Add table
Reference in a new issue