mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
temp / fix
This commit is contained in:
parent
f9c8082190
commit
3662e86815
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,12 @@ class Completer(object):
|
|||
if begidx == 0:
|
||||
rtn = self.cmd_complete(prefix)
|
||||
elif line.split(' ', 1)[0] in self.bash_complete_funcs:
|
||||
return sorted(self.bash_complete(prefix, line, begidx, endidx))
|
||||
rtn = set()
|
||||
for s in self.bash_complete(prefix, line, begidx, endidx):
|
||||
if os.path.isdir(s.rstrip()):
|
||||
s = s.rstrip() + slash
|
||||
rtn.add(s)
|
||||
return sorted(rtn)
|
||||
else:
|
||||
rtn = set()
|
||||
rtn |= {s for s in XONSH_TOKENS if s.startswith(prefix)}
|
||||
|
|
Loading…
Add table
Reference in a new issue