commit a2a28a2d916bf3f1633cdc177fddd1f30aadb622
parent 3a333881d8d8a25d3e0716bdb222f4b782482df9
Author: EinfachToll <istjanichtzufassen@googlemail.com>
Date: Fri, 15 May 2015 11:04:53 +0200
Make <BS> work also when the user jumped to a tag
Ref #85
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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 " }}}