commit 708fde781afeafc4fb64f52059dd53b487e9ec39
parent 825870ec1b845867eadb801ca6ad905be3d20418
Author: Tinmarino <tinmarino@gmail.com>
Date: Tue, 4 Aug 2020 18:57:02 -0400
Fix: tilde ~ not supported in g:vimwiki_listsym_rejected (Issue #962)
Just escape the tild in match
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/autoload/vimwiki/vars.vim b/autoload/vimwiki/vars.vim
@@ -786,7 +786,8 @@ function! s:populate_list_vars(wiki) abort
" the user can set the listsyms as string, but vimwiki needs a list
let a:wiki.listsyms_list = split(a:wiki.listsyms, '\zs')
- if match(a:wiki.listsyms, a:wiki.listsym_rejected) != -1
+ " Guard: Check if listym_rejected is in listsyms
+ if match(a:wiki.listsyms, '[' . a:wiki.listsym_rejected . ']') != -1
echomsg 'Vimwiki Warning: the value of listsym_rejected ('''
\ . a:wiki.listsym_rejected . ''') must not be a part of listsyms ('''
\ . a:wiki.listsyms . ''')'