소스 검색

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 년 전
부모
커밋
5cd4faf2c6
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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