commit c4e78fe310d94df9857b87592d7038f8a58b7892
parent 45c89ebca4c19e5b4fb444a474b100dd7bb6aa89
Author: Tinmarino <tinmarino@gmail.com>
Date: Fri, 11 Jun 2021 10:57:56 -0400
Fix: Calendar integration if no vinwikilist #290
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/autoload/vimwiki/diary.vim b/autoload/vimwiki/diary.vim
@@ -512,10 +512,14 @@ endfunction
function! vimwiki#diary#calendar_sign(day, month, year) abort
" Callback function for Calendar.vim
+ " Clause: no wiki no sign #290
+ if len(g:vimwiki_list) <= 0
+ return
+ endif
let day = s:prefix_zero(a:day)
let month = s:prefix_zero(a:month)
- let sfile = vimwiki#vars#get_wikilocal('path').vimwiki#vars#get_wikilocal('diary_rel_path').
- \ a:year.'-'.month.'-'.day.vimwiki#vars#get_wikilocal('ext')
+ let sfile = vimwiki#vars#get_wikilocal('path') . vimwiki#vars#get_wikilocal('diary_rel_path')
+ \ . a:year.'-'.month.'-'.day.vimwiki#vars#get_wikilocal('ext')
return filereadable(expand(sfile))
endfunction
diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt
@@ -3925,6 +3925,8 @@ http://code.google.com/p/vimwiki/issues/list. They may be accessible from
https://github.com/vimwiki-backup/vimwiki/issues.
New:~
+ * Issue #290: Calendar plugin, do not sign if no wiki
+ * Issue #281: Permit `\|` in tables
* PR #1128: VimwikiGoto: Support wiki pages with spaces
* Feature: Add option to use link Description in default syntax if
caption is present. |generated_links_caption|