mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
further fixes
This commit is contained in:
parent
d0fb7dd39f
commit
6c1899f39e
1 changed files with 5 additions and 4 deletions
|
@ -262,10 +262,11 @@ class ReadlineShell(BaseShell, cmd.Cmd):
|
|||
rl_completion_suppress_append() # this needs to be called each time
|
||||
_rebind_case_sensitive_completions()
|
||||
_s, _e, _q = check_for_partial_string(line)
|
||||
if _s is not None and _e is not None and line.endswith(_q):
|
||||
return []
|
||||
if _s is not None and _e is None:
|
||||
mline = line[_s:]
|
||||
if _s is not None:
|
||||
if _e is not None and ' ' in line[_e:]:
|
||||
mline = line.rpartition(' ')[2]
|
||||
else:
|
||||
mline = line[_s:]
|
||||
else:
|
||||
mline = line.rpartition(' ')[2]
|
||||
offs = len(mline) - len(prefix)
|
||||
|
|
Loading…
Add table
Reference in a new issue