vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit d3aade7349f97dbee9201e72fb53da3f21acd3d7
parent 62d71b832af248c4913565b25e0cfbcf8256352e
Author: Rane Brown <rane.brown@gmail.com>
Date:   Wed,  3 Apr 2019 08:39:21 -0600

Fix VimwikiShowVersion function. Closes #654.

Change a:xxx variable to l:xxx since argument variables are immutable as
of Vim patch 888. Convert the stable version number to a string prior to
printing.

Diffstat:
Mplugin/vimwiki.vim | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim @@ -195,15 +195,15 @@ endfunction function! s:get_version() if s:plugin_vers != -1 - echo "Stable version: " . s:plugin_vers + echo "Stable version: " . string(s:plugin_vers) else - let a:plugin_rev = system("git --git-dir " . s:plugin_dir . "/.git rev-parse --short HEAD") - let a:plugin_branch = system("git --git-dir " . s:plugin_dir . "/.git rev-parse --abbrev-ref HEAD") - let a:plugin_date = system("git --git-dir " . s:plugin_dir . "/.git show -s --format=%ci") + let l:plugin_rev = system("git --git-dir " . s:plugin_dir . "/.git rev-parse --short HEAD") + let l:plugin_branch = system("git --git-dir " . s:plugin_dir . "/.git rev-parse --abbrev-ref HEAD") + let l:plugin_date = system("git --git-dir " . s:plugin_dir . "/.git show -s --format=%ci") if v:shell_error == 0 - echo "Branch: " . a:plugin_branch - echo "Revision: " . a:plugin_rev - echo "Date: " . a:plugin_date + echo "Branch: " . l:plugin_branch + echo "Revision: " . l:plugin_rev + echo "Date: " . l:plugin_date else echo "Unknown version" endif