Merge pull request #7 from Nudin/dev

Merge from upstream
This commit is contained in:
Michael F. Schönitzer 2017-11-15 16:37:35 +01:00 committed by GitHub
commit 533c103748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,16 +174,15 @@ function! vimwiki#diary#make_note(wnum, ...) "{{{
call vimwiki#path#mkdir(VimwikiGet('path', idx).VimwikiGet('diary_rel_path', idx)) call vimwiki#path#mkdir(VimwikiGet('path', idx).VimwikiGet('diary_rel_path', idx))
let cmd = 'edit'
if a:0 if a:0
if a:1 == 1 if a:1 == 1
let cmd = 'tabedit' let cmd = 'tabedit'
elseif a:2 == 2 elseif a:1 == 2
let cmd = 'split' let cmd = 'split'
elseif a:3 == 3 elseif a:1 == 3
let cmd = 'vsplit' let cmd = 'vsplit'
endif endif
else
let cmd = 'edit'
endif endif
if a:0>1 if a:0>1
let link = 'diary:'.a:2 let link = 'diary:'.a:2