Make gl* work again

The problem was that map() also changed the given list in-place, that's
not what was intended.
This commit is contained in:
EinfachToll 2018-11-19 21:02:37 +01:00
parent 2fb0e17adb
commit dcd1c0a364
1 changed files with 1 additions and 1 deletions

View File

@ -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)'
\ ) , '\|')