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:
parent
2fb0e17adb
commit
dcd1c0a364
@ -359,7 +359,7 @@ function! vimwiki#vars#populate_syntax_vars(syntax)
|
|||||||
"create regexp for bulleted list items
|
"create regexp for bulleted list items
|
||||||
if !empty(g:vimwiki_syntax_variables[a:syntax].bullet_types)
|
if !empty(g:vimwiki_syntax_variables[a:syntax].bullet_types)
|
||||||
let g:vimwiki_syntax_variables[a:syntax].rxListBullet =
|
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).'
|
\'vimwiki#u#escape(v:val).'
|
||||||
\ .'repeat("\\+", g:vimwiki_syntax_variables[a:syntax].recurring_bullets)'
|
\ .'repeat("\\+", g:vimwiki_syntax_variables[a:syntax].recurring_bullets)'
|
||||||
\ ) , '\|')
|
\ ) , '\|')
|
||||||
|
Loading…
Reference in New Issue
Block a user