mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Merge pull request #1116 from nicolasavru/fix-completion
return empty set instead of None when no python completions match
This commit is contained in:
commit
e9afa9b551
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue