From a2a28a2d916bf3f1633cdc177fddd1f30aadb622 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Fri, 15 May 2015 11:04:53 +0200 Subject: [PATCH] Make work also when the user jumped to a tag Ref #85 --- autoload/vimwiki/base.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 32fd5d5..9bb7e9f 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -1164,6 +1164,9 @@ function! vimwiki#base#go_back_link() "{{{ let prev_word = b:vimwiki_prev_link execute ":e ".substitute(prev_word[0], '\s', '\\\0', 'g') call setpos('.', prev_word[1]) + else + " maybe we came here by jumping to a tag -> pop from the tag stack + silent! pop! endif endfunction " }}}