From a2fa79b49169a0c3f6fee0daea7dc3b476e714f8 Mon Sep 17 00:00:00 2001 From: NewComer00 <37762193+NewComer00@users.noreply.github.com> Date: Sat, 10 Dec 2022 21:56:58 +0800 Subject: [PATCH] Deal with v:progpath with spaces This plugin will now work normally when the Vim executable is placed in a directory with spaces, especially on Windows. --- autoload/startuptime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/startuptime.vim b/autoload/startuptime.vim index 833914b..8aedb5c 100644 --- a/autoload/startuptime.vim +++ b/autoload/startuptime.vim @@ -262,7 +262,7 @@ function! startuptime#profile(...) abort call s:init_plugins(vimrc) if exists('v:progpath') && !empty(v:progpath) && executable(v:progpath) - let exe = v:progpath + let exe = '"'.v:progpath.'"' else let exe = has('nvim') ? 'nvim' : 'vim' if has('win32')