From b09077c90827caff6898e4ad5db196f932dac50a Mon Sep 17 00:00:00 2001 From: Maxim Kim Date: Thu, 15 Aug 2013 19:21:08 +0400 Subject: [PATCH] Issue #12: multiple diary with calendar Unfortunatly there is no way to update calendar signs when wiki is changed. We could convince calendar mainteiner to provide a hook. --- autoload/vimwiki/diary.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimwiki/diary.vim b/autoload/vimwiki/diary.vim index 55c4325..2f25698 100644 --- a/autoload/vimwiki/diary.vim +++ b/autoload/vimwiki/diary.vim @@ -341,8 +341,8 @@ function! vimwiki#diary#calendar_action(day, month, year, week, dir) "{{{ endif endif - " Create diary note for a selected date in default wiki. - call vimwiki#diary#make_note(1, 0, link) + " XXX: Well, +1 is for inconsistent index basing... + call vimwiki#diary#make_note(g:vimwiki_current_idx+1, 0, link) endfunction "}}} " Sign function.