Skip to content

Commit 981c87d

Browse files
authored
Merge pull request #5 from pleshevskiy/issue-3
Check var existence
2 parents 2a6ca52 + b133ebc commit 981c87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/d2.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ endfunction
3030

3131
function! d2#init_block_string_syntaxes() abort
3232
let b:included_syntaxes = get(b:, 'included_syntaxes', [])
33-
if type(g:d2_block_string_syntaxes) != v:t_dict && empty(g:d2_block_string_syntaxes)
33+
if exists('g:d2_block_string_syntaxes') == 0 || type(g:d2_block_string_syntaxes) != v:t_dict || empty(g:d2_block_string_syntaxes) == 1
3434
return
3535
endif
3636

0 commit comments

Comments
 (0)