Răsfoiți Sursa

Windows: handle spaces properly

References #239.
Marco Hinz 9 ani în urmă
părinte
comite
74471c5274
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 4 2
      autoload/startify.vim

+ 4 - 2
autoload/startify.vim

@@ -488,7 +488,6 @@ function! s:filter_oldfiles(path_prefix, path_format, use_env) abort
     endif
 
     let absolute_path = fnamemodify(resolve(fname), ":p")
-
     " filter duplicates, bookmarks and entries from the skiplist
     if has_key(entries, absolute_path)
           \ || !filereadable(absolute_path)
@@ -507,7 +506,10 @@ function! s:filter_oldfiles(path_prefix, path_format, use_env) abort
 
     let entries[absolute_path]  = 1
     let counter                -= 1
-    let oldfiles               += [[fnameescape(absolute_path), entry_path]]
+    if !has('win32')
+      let absolute_path = fnameescape(absolute_path)
+    endif
+    let oldfiles += [[absolute_path, entry_path]]
   endfor
 
   if a:use_env