From 6dd55b736cc2e616d1bcca184b6dc2e460b787ca Mon Sep 17 00:00:00 2001 From: adam j hartz Date: Fri, 3 Apr 2015 20:37:29 -0400 Subject: [PATCH] fix conditional --- xonsh/completer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonsh/completer.py b/xonsh/completer.py index e4b8dc599..f308ff43d 100644 --- a/xonsh/completer.py +++ b/xonsh/completer.py @@ -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: