parent
9a8854756e
commit
d5c6cee5eb
@ -176,6 +176,9 @@ endfunction
|
|||||||
function! vimwiki#diary#make_note(wnum, ...)
|
function! vimwiki#diary#make_note(wnum, ...)
|
||||||
if a:wnum == 0
|
if a:wnum == 0
|
||||||
let wiki_nr = vimwiki#vars#get_bufferlocal('wiki_nr')
|
let wiki_nr = vimwiki#vars#get_bufferlocal('wiki_nr')
|
||||||
|
if wiki_nr < 0 " this happens when e.g. VimwikiMakeDiaryNote was called outside a wiki buffer
|
||||||
|
let wiki_nr = 0
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
let wiki_nr = a:wnum - 1
|
let wiki_nr = a:wnum - 1
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user