mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +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()):
|
if os.path.isdir(s.rstrip()):
|
||||||
s = s.rstrip() + slash
|
s = s.rstrip() + slash
|
||||||
rtn.add(s)
|
rtn.add(s)
|
||||||
if len(rtn) != 0:
|
if len(rtn) == 0:
|
||||||
rtn = self.path_complete(prefix)
|
rtn = self.path_complete(prefix)
|
||||||
return sorted(rtn)
|
return sorted(rtn)
|
||||||
elif cmd not in ctx and cmd not in XONSH_TOKENS:
|
elif cmd not in ctx and cmd not in XONSH_TOKENS:
|
||||||
|
|
Loading…
Add table
Reference in a new issue