lib/soywiki.vim in soywiki-0.3.2 vs lib/soywiki.vim in soywiki-0.3.3
- old
+ new
@@ -127,19 +127,20 @@
endfunc
func! s:follow_link_under_cursor(split)
if expand("<cWORD>>") == ''
" just switch windows
- wincmd p
+ silent wincmd p
+ echom "Switched to last accessed window"
return
endif
if match(expand("<cWORD>>"), s:http_link_pattern) != -1
call s:open_href_under_cursor()
return
endif
let link = s:link_under_cursor()
if link == ""
- echom link . " is not a wiki link"
+ echom "'" . expand("<cWORD>") . "' is not a wiki link"
return ""
elseif line('.') == 1
" SPECIAL CASE
" close window
if winnr('$') > 1