Fix E121: Undefined variable g:dracula_undercurl

The variable `g:dracula_undercurl` is not properly defined
when underline attribute is disabled by user configuration:

    let g:dracula_underline = 0

The fix always defines missing `g:dracula_undercurl`,
but also disables it when underline is disabled.
This commit is contained in:
d7xdev 2020-10-16 13:38:02 -04:00
parent b64b22affa
commit 2d428a704c

View file

@ -81,8 +81,12 @@ if !exists('g:dracula_underline')
let g:dracula_underline = 1 let g:dracula_underline = 1
endif endif
if !exists('g:dracula_undercurl') && g:dracula_underline != 0 if !exists('g:dracula_undercurl')
if g:dracula_underline == 0
let g:dracula_undercurl = 0
else
let g:dracula_undercurl = 1 let g:dracula_undercurl = 1
endif
endif endif
if !exists('g:dracula_inverse') if !exists('g:dracula_inverse')