File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -404,16 +404,8 @@ function! InitializeDirectories()
404
404
echo " Warning: Unable to create backup directory: " . directory
405
405
echo " Try: mkdir -p " . directory
406
406
else
407
- if has (' win32' ) || has (' win64' )
408
- " Adding an extra trailing slash so it stores the path and not just the
409
- " filename so there aren't collisions for backups
410
- " Windows Vista / 7 has UAC issues, so setting $temp as fallback
411
- exec " set " . settingname . " =\" " . directory . " \" "
412
- print " Setting " . settingname . " = " . directory
413
- else
414
- " For Linux/Mac OS (others?) these directives must not be quoted
415
- exec " set " . settingname . " =" . directory
416
- endif
407
+ let directory = substitute (directory , " " , " \\\\ " , " " )
408
+ exec " set " . settingname . " =" . directory
417
409
endif
418
410
endfor
419
411
endfunction
You can’t perform that action at this time.
0 commit comments