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:
parent
b64b22affa
commit
2d428a704c
1 changed files with 6 additions and 2 deletions
|
@ -81,8 +81,12 @@ if !exists('g:dracula_underline')
|
|||
let g:dracula_underline = 1
|
||||
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
|
||||
endif
|
||||
endif
|
||||
|
||||
if !exists('g:dracula_inverse')
|
||||
|
|
Loading…
Reference in a new issue