Merge pull request #1116 from nicolasavru/fix-completion

return empty set instead of None when no python completions match
This commit is contained in:
adam j hartz 2016-06-05 16:58:07 -04:00
commit e9afa9b551

View file

@ -31,7 +31,7 @@ def complete_python(prefix, line, start, end, ctx):
"""
first = line.split()[0]
if first in builtins.__xonsh_commands_cache__ and first not in ctx:
return None
return set()
filt = get_filter_function()
rtn = {s for s in XONSH_TOKENS if filt(s, prefix)}
if ctx is not None: