From 74471c52741ef27352025c72e0474b985b12e35b Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 13 Oct 2016 14:27:30 +0200 Subject: [PATCH] Windows: handle spaces properly References #239. --- autoload/startify.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 54ff55f..a019368 100644 --- a/autoload/startify.vim +++ b/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