File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1676,7 +1676,7 @@ function z_cd(patterns)
16761676 end
16771677 cmd = cmd .. ' < "' .. tmpname .. ' "'
16781678 else
1679- tmpname = os.tmpname ():gsub (' \\ ' , ' ' ):gsub (' %.' , ' ' )
1679+ tmpname = os.tmpname ():gsub (' [ \\ :] ' , ' ' ):gsub (' %.' , ' ' )
16801680 tmpname = os .environ (' TMP' , ' ' ) .. ' \\ zlua_' .. tmpname .. ' .txt'
16811681 cmd = ' type "' .. tmpname .. ' " | ' .. cmd
16821682 end
@@ -1873,7 +1873,7 @@ function cd_breadcrumbs(pwd, interactive)
18731873 if not windows then
18741874 tmpname = os.tmpname ()
18751875 else
1876- tmpname = os.tmpname ():gsub (' \\ ' , ' ' ):gsub (' %.' , ' ' )
1876+ tmpname = os.tmpname ():gsub (' [ \\ :] ' , ' ' ):gsub (' %.' , ' ' )
18771877 tmpname = os .environ (' TMP' , ' ' ) .. ' \\ zlua_' .. tmpname .. ' .txt'
18781878 end
18791879 fp = io.open (tmpname , ' w' )
You can’t perform that action at this time.
0 commit comments