mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
fixes for completing quoted strings
This commit is contained in:
parent
d28cd5350c
commit
3798ddb4dc
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
import os
|
||||
import re
|
||||
import ast
|
||||
import builtins
|
||||
|
||||
from xonsh.platform import ON_WINDOWS
|
||||
|
@ -166,7 +168,7 @@ def complete_path(prefix, line, start, end, ctx, cdpath=False):
|
|||
paths = {s.replace(home, tilde) for s in paths}
|
||||
if cdpath:
|
||||
_add_cdpaths(paths, prefix)
|
||||
paths = _quote_paths({_normpath(s) for s in paths}, '', '')
|
||||
paths = _quote_paths({_normpath(s) for s in paths}, path_str_start, path_str_end)
|
||||
_add_env(paths, prefix)
|
||||
_add_dots(paths, prefix)
|
||||
return paths, lprefix
|
||||
|
|
Loading…
Add table
Reference in a new issue