commit 3b5537f15aecbdf7ea66611e7d58b6aea96309ca
parent c6564119b06a965b9fec1d9035be89cd78d93419
Author: Tinmarino <tinmarino@gmail.com>
Date: Sun, 17 May 2020 12:31:32 -0400
Fix: Link containing only '-'
Issue #835 #876
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim
@@ -2123,6 +2123,10 @@ function! s:clean_url(url) abort
let url = substitute(url, '^//', '', '')
let url = substitute(url, '^\([^/]\+\)\.\a\{2,4}/', '\1/', '')
let url_l = split(url, '/\|=\|-\|&\|?\|\.')
+ " case only a '-'
+ if url_l == []
+ let url_l = [url]
+ endif
let url_l = filter(url_l, 'v:val !=# ""')
if url_l[0] ==# 'www'
let url_l = url_l[1:]
diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt
@@ -3621,6 +3621,8 @@ Fixed:~
* Issue #404: Don't conceal strikethrough character in tables.
* Issue #318: Markdown syntax bold, italic, and italic/bold are now
rendered correctly.
+ * Issue #835: Pressing enter on the dash of a markdown list causes an error.
+ * Issue #876: E684: list index out of range: 0, when creating a link containing a `.`.
2.4 (2019-03-24)~