Pārlūkot izejas kodu

Windows: handle Vim cmdline special characters on Windows

Fixes   https://github.com/mhinz/vim-startify/issues/346
Reverts https://github.com/mhinz/vim-startify/issues/239
Marco Hinz 7 gadi atpakaļ
vecāks
revīzija
5cd4faf2c6
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  1. 1 4
      autoload/startify.vim

+ 1 - 4
autoload/startify.vim

@@ -592,10 +592,7 @@ function! s:filter_oldfiles(path_prefix, path_format, use_env) abort
 
     let entries[absolute_path]  = 1
     let counter                -= 1
-    if !has('win32')
-      let absolute_path = fnameescape(absolute_path)
-    endif
-    let oldfiles += [[absolute_path, entry_path]]
+    let oldfiles += [[fnameescape(absolute_path), entry_path]]
   endfor
 
   if a:use_env