Fix: tilde ~ not supported in g:vimwiki_listsym_rejected (Issue #962)

Just escape the tild in match
This commit is contained in:
Tinmarino 2020-08-04 18:57:02 -04:00
parent 825870ec1b
commit 708fde781a

View File

@ -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 . ''')'