fix conditional

This commit is contained in:
adam j hartz 2015-04-03 20:37:29 -04:00
parent 0ec02095ac
commit 6dd55b736c

View file

@ -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: