mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
Fixed _add_cdpaths in autocomplete, amending #191
This commit is contained in:
parent
f68650a218
commit
84e61badc8
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ class Completer(object):
|
|||
env = builtins.__xonsh_env__
|
||||
csc = env.get('CASE_SENSITIVE_COMPLETIONS')
|
||||
for cdp in env.get('CDPATH'):
|
||||
test_glob = os.path.join(cdp, prefix) + '*'
|
||||
test_glob = os.path.join(builtins.__xonsh_expand_path__(cdp), prefix) + '*'
|
||||
for s in iglobpath(test_glob, ignore_case=(not csc)):
|
||||
if os.path.isdir(s):
|
||||
paths.add(os.path.basename(s))
|
||||
|
|
Loading…
Add table
Reference in a new issue