parent
4ab0bdf3da
commit
6607a3f641
@ -965,6 +965,9 @@ function! vimwiki#base#edit_file(command, filename, anchor, ...) "{{{
|
|||||||
" getpos() directly after this command. Strange.
|
" getpos() directly after this command. Strange.
|
||||||
if !(a:command ==# ':e ' && vimwiki#path#is_equal(a:filename, expand('%:p')))
|
if !(a:command ==# ':e ' && vimwiki#path#is_equal(a:filename, expand('%:p')))
|
||||||
execute a:command.' '.fname
|
execute a:command.' '.fname
|
||||||
|
if &filetype != 'vimwiki'
|
||||||
|
set filetype=vimwiki
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
if a:anchor != ''
|
if a:anchor != ''
|
||||||
call s:jump_to_anchor(a:anchor)
|
call s:jump_to_anchor(a:anchor)
|
||||||
|
Loading…
Reference in New Issue
Block a user