From 5cd4faf2c681c36edfae3aa907d0ab720ff9c6e5 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sat, 8 Dec 2018 21:41:15 +0100 Subject: [PATCH] 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 --- autoload/startify.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index abd7b6c..c6ff84e 100644 --- a/autoload/startify.vim +++ b/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