Fix: count ignored when looking up diary frequency

When calling VimwikiMakeYesterdayDiary (or Tomorrow) the wiki_nr is
looked up by vimwiki#diary#diary_date_link without access to the passed
count, which would result in the creation of the file in the correct
place, but with the diary_frequency of another wiki. Modify
vimwiki#diary#diary_date_link to take a possible third argument as the
wiki_nr+1 and modify the commands to pass <count> as the third argument.

Fixes: #1365
This commit is contained in:
Bence Ferdinandy
2023-08-28 14:16:51 +02:00
committed by NobleRat
parent 65575fb103
commit 5d86b625f5
3 changed files with 17 additions and 9 deletions
+7 -3
View File
@@ -4005,6 +4005,7 @@ Contributors and their Github usernames in roughly chronological order:
- Julian Prein (@druckdev)
- Luke Atkinson (@LukeDAtkinson)
- Joe Planisky (@jplanisky)
- Bence Ferdinandy (@ferdinandyb)
==============================================================================
@@ -4025,8 +4026,11 @@ This is somewhat experimental, and will probably be refined over time.
New:~
* Issue #1279: Fix/Improvement: When re-wrap a long line in a definition
by 'gq' it should insert ':: ' at the new line
by 'gq' it should insert ':: ' at the new line
Fixed:~
* Issue #1365: Fix: count ignored when looking up diary frequency
2023.04.04~
@@ -4036,7 +4040,7 @@ Fixed:~
* PR #1324: Fix pressing escape in VimwikiGoto prompt (rddunphy)
* Issue #1336: vimwiki#diary#calendar_sign throws an error
when g:vimwiki_list is not set
2023.04.04~
New:~