mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
base completer: Don't complete unnecessarily
This commit is contained in:
parent
b7bba551e1
commit
5b33427c61
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ def complete_base(prefix, line, start, end, ctx):
|
|||
and paths. If we are completing the first argument, complete based on
|
||||
valid commands and python names.
|
||||
"""
|
||||
if line.strip() and prefix != line:
|
||||
# don't do unnecessary completions
|
||||
return set()
|
||||
|
||||
# get and unpack python completions
|
||||
python_comps = complete_python(prefix, line, start, end, ctx)
|
||||
if isinstance(python_comps, cabc.Sequence):
|
||||
|
|
Loading…
Add table
Reference in a new issue