Fix a few regression bugs

Ref #256
This commit is contained in:
EinfachToll
2017-01-16 22:09:49 +01:00
parent fea76ace23
commit 31760a7ef7
5 changed files with 22 additions and 41 deletions

View File

@ -81,7 +81,7 @@ function! vimwiki#base#find_wiki(path) "{{{
return idx
endif
let idx += 1
endwhile
endfor
" an orphan page has been detected
return -1
@ -1128,7 +1128,7 @@ endfunction " }}}
" vimwiki#base#go_back_link
function! vimwiki#base#go_back_link() "{{{
let prev_link = vimwiki#vars#get_bufferlocal('prev_link')
if prev_link !=# ''
if !empty(prev_link)
" go back to saved wiki link
execute ":e ".substitute(prev_link[0], '\s', '\\\0', 'g')
call setpos('.', prev_link[1])