From feaaad3b311e06e67dd9205aa285ad4e9bbcf3e5 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Sun, 16 Sep 2018 10:26:08 +0800 Subject: [PATCH] Fix unknonw v:progpath (#2169) * Fix unknonw v:progpath close #2126 --- autoload/SpaceVim/health/environment.vim | 4 +++- wiki/en/Following-HEAD.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/health/environment.vim b/autoload/SpaceVim/health/environment.vim index 7104b6b4d..88d50f5b6 100644 --- a/autoload/SpaceVim/health/environment.vim +++ b/autoload/SpaceVim/health/environment.vim @@ -7,7 +7,9 @@ "============================================================================= function! SpaceVim#health#environment#check() abort let result = ['SpaceVim environment check report:'] - call add(result, 'Current progpath: ' . v:progname . '(' . v:progpath . ')') + " FIXME: old vim does not provide v:progpath, we need a compatible function + " for getting the progpath of current vim. + call add(result, 'Current progpath: ' . v:progname . '(' . get(v:, 'progpath', '') . ')') call add(result, 'version: ' . v:version) call add(result, 'OS: ' . SpaceVim#api#import('system').name) call add(result, '[shell, shellcmdflag, shellslash]: ' . string([&shell, &shellcmdflag, &shellslash])) diff --git a/wiki/en/Following-HEAD.md b/wiki/en/Following-HEAD.md index 7aff718e4..0700e79c8 100644 --- a/wiki/en/Following-HEAD.md +++ b/wiki/en/Following-HEAD.md @@ -80,6 +80,7 @@ The next release is v0.9.0. - Fix key binding `SPC ?` ([#2109](https://github.com/SpaceVim/SpaceVim/pull/2109)) - Fix python autoflake support ([#2115](https://github.com/SpaceVim/SpaceVim/pull/2115)) - Fix active statusline displaying fileformat info ([#2125](https://github.com/SpaceVim/SpaceVim/pull/2125)) +- Fix unkown v:progpath ([#2169](https://github.com/SpaceVim/SpaceVim/pull/2169)) ### Removed