Fix bug in vimtex fold (#623)

This commit is contained in:
Karl Yngve Lervåg 2016-11-16 23:18:42 +01:00
parent 72e91d978b
commit 489331f1c0

View File

@ -60,7 +60,7 @@ function! vimtex#fold#init_script() " {{{1
for l:type in ['single', 'single_opt', 'multi'] for l:type in ['single', 'single_opt', 'multi']
let l:cmds = keys(filter(copy(s:cmds), 'v:val ==# l:type')) let l:cmds = keys(filter(copy(s:cmds), 'v:val ==# l:type'))
if !empty(l:cmds) if !empty(l:cmds)
call add(l:cmds_all, l:cmds) call extend(l:cmds_all, l:cmds)
call add(s:cmd_types, s:cmd_{l:type}(l:cmds)) call add(s:cmd_types, s:cmd_{l:type}(l:cmds))
endif endif
endfor endfor