From 1d35ff035d20b18665e4e928b6c30a834d900f3d Mon Sep 17 00:00:00 2001 From: Tinmarino Date: Fri, 17 Mar 2023 03:59:05 -0300 Subject: [PATCH] Fix: Bug: VimwikiGoto without argument creates empty page (issue #1229) --- autoload/vimwiki/base.vim | 2 +- doc/vimwiki.txt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 80462ab..2c07bdf 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -492,7 +492,7 @@ endfunction function! vimwiki#base#goto(...) abort " Jump: to other wikifile, specified on command mode " Called: by command VimwikiGoto (Exported) - let key = a:0 > 0 ? a:1 : input('Enter name: ', '', + let key = a:0 > 0 && a:1 !=# '' ? a:1 : input('Enter name: ', '', \ 'customlist,vimwiki#base#complete_links_escaped') let anchor = a:0 > 1 ? a:2 : '' diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 1505e41..f0862a0 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -4019,12 +4019,15 @@ master is retained as a legacy mirror of the dev branch. This is somewhat experimental, and will probably be refined over time. -Fixed:~ +New:~ * Issue #1261: Feature: Support for in Markdown highlighting with yellow background and back foreground * Issue #1274: Feature: Continue blockquote when is pressed in insert mode Also add the |blockquote_markers| variable + +Fixed:~ + * Issue #1229: Bug: VimwikiGoto without argument creates empty page * Issue #1316: Permit tags in heading * Issue #1270: VimwikiAddHeaderLevel map (3=) was broken by a previous refactoring commit