VimwikiGoto: Enable VimwikiGoBackLink after

This commit is contained in:
tinmarino 2019-12-15 19:23:50 -03:00
parent 80013f457d
commit 8db9d4b387
1 changed files with 6 additions and 1 deletions

View File

@ -430,9 +430,14 @@ function! vimwiki#base#goto(...)
let key = a:0 > 0 ? a:1 : input('Enter name: ')
let anchor = a:0 > 1 ? a:2 : ''
" Save current file pos
let vimwiki_prev_link = [vimwiki#path#current_wiki_file(), getpos('.')]
call vimwiki#base#edit_file(':e',
\ vimwiki#vars#get_wikilocal('path') . key . vimwiki#vars#get_wikilocal('ext'),
\ anchor)
\ anchor,
\ vimwiki_prev_link,
\ &ft ==# 'vimwiki')
endfunction