vimwiki

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

commit 2a51d833972e7b36523040b5d512253db0730072
parent 36faec1de98d8063afc86a1a4d43c9a37c2e5091
Author: Rane Brown <ranebrown@users.noreply.github.com>
Date:   Sat, 14 Dec 2019 21:56:09 -0700

Merge pull request #780 from rattletat/dev

Only echo message with custom_wiki2html call if the output isn't empty.
Diffstat:
Mautoload/vimwiki/html.vim | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim @@ -1437,7 +1437,7 @@ endfunction function! vimwiki#html#CustomWiki2HTML(path, wikifile, force) call vimwiki#path#mkdir(a:path) - echomsg system(vimwiki#vars#get_wikilocal('custom_wiki2html'). ' '. + let output = system(vimwiki#vars#get_wikilocal('custom_wiki2html'). ' '. \ a:force. ' '. \ vimwiki#vars#get_wikilocal('syntax'). ' '. \ strpart(vimwiki#vars#get_wikilocal('ext'), 1). ' '. @@ -1454,6 +1454,10 @@ function! vimwiki#html#CustomWiki2HTML(path, wikifile, force) \ shellescape(s:root_path(vimwiki#vars#get_bufferlocal('subdir'))) : '-'). ' '. \ (len(vimwiki#vars#get_wikilocal('custom_wiki2html_args')) > 0 ? \ vimwiki#vars#get_wikilocal('custom_wiki2html_args') : '-')) + " Echo if non void + if output !~ "^\s*$" + echomsg output + endif endfunction