From dcd1c0a3646a7d8c146a309a89c6b2e4f3d14b6f Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Mon, 19 Nov 2018 21:02:37 +0100 Subject: [PATCH] Make gl* work again The problem was that map() also changed the given list in-place, that's not what was intended. --- autoload/vimwiki/vars.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/vars.vim b/autoload/vimwiki/vars.vim index 1bdda1a..77689f7 100644 --- a/autoload/vimwiki/vars.vim +++ b/autoload/vimwiki/vars.vim @@ -359,7 +359,7 @@ function! vimwiki#vars#populate_syntax_vars(syntax) "create regexp for bulleted list items if !empty(g:vimwiki_syntax_variables[a:syntax].bullet_types) let g:vimwiki_syntax_variables[a:syntax].rxListBullet = - \ join( map(g:vimwiki_syntax_variables[a:syntax].bullet_types, + \ join( map(copy(g:vimwiki_syntax_variables[a:syntax].bullet_types), \'vimwiki#u#escape(v:val).' \ .'repeat("\\+", g:vimwiki_syntax_variables[a:syntax].recurring_bullets)' \ ) , '\|')