@@ -94,24 +94,24 @@ proc getCompletions*(ed: LineEditor, i: MinInterpreter): seq[string] =
94
94
var f = word[1 ..^ 1 ]
95
95
if f == " " :
96
96
f = getCurrentDir ().replace (" \\ " , " /" )
97
- return toSeq (walkDir (f, true )).mapIt (" \" $1" % it.path.replace (" \\ " , " /" ))
97
+ return toSeq (walkDir (f, true )).mapIt (" \" $1" % it.path.replace (" \\ " , " /" )& " \" " )
98
98
elif f.dirExists:
99
99
f = f.replace (" \\ " , " /" )
100
100
if f[f.len- 1 ] != '/' :
101
101
f = f & " /"
102
- return toSeq (walkDir (f, true )).mapIt (" \" $1$2" % [f, it.path.replace (" \\ " , " /" )])
102
+ return toSeq (walkDir (f, true )).mapIt (" \" $1$2\" " % [f, it.path.replace (" \\ " , " /" )])
103
103
else :
104
104
var dir: string
105
105
if f.contains (" /" ) or dir.contains (" \\ " ):
106
106
dir = f.parentDir
107
107
let file = f.extractFileName
108
108
return toSeq (walkDir (dir, true )).filterIt (
109
109
it.path.toLowerAscii.startsWith (file.toLowerAscii)).mapIt (
110
- " \" $1/$2" % [dir, it.path.replace (" \\ " , " /" )])
110
+ " \" $1/$2\" " % [dir, it.path.replace (" \\ " , " /" )])
111
111
else :
112
112
dir = getCurrentDir ()
113
113
return toSeq (walkDir (dir, true )).filterIt (
114
- it.path.toLowerAscii.startsWith (f.toLowerAscii)).mapIt (" \" $1" % [
114
+ it.path.toLowerAscii.startsWith (f.toLowerAscii)).mapIt (" \" $1\" " % [
115
115
it.path.replace (" \\ " , " /" )])
116
116
return symbols
117
117
0 commit comments