We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69db0a5 commit d48fd5eCopy full SHA for d48fd5e
stdlib/REPL/src/REPLCompletions.jl
@@ -492,10 +492,8 @@ function complete_path(path::AbstractString,
492
end
493
startpos = pos - lastindex(prefix) + 1
494
Sys.iswindows() && map!(paths, paths) do c::PathCompletion
495
- # emulation for unnecessarily complicated return value, since / is a
496
- # perfectly acceptable path character which does not require quoting
497
- # but is required by Pkg's awkward parser handling
498
- return endswith(c.path, "/") ? PathCompletion(chop(c.path) * "\\\\") : c
+ # HACK: Pkg requires escaped backslashes
+ return PathCompletion(replace(c.path, "\\" => "\\\\"))
499
500
return paths, startpos:pos, success
501
0 commit comments