Skip to content

Mutually exclusive vars checked independently - #277

Open
farisachugthai wants to merge 1 commit into
morhetz:masterfrom
farisachugthai:farisachugthai-patch-1
Open

Mutually exclusive vars checked independently#277
farisachugthai wants to merge 1 commit into
morhetz:masterfrom
farisachugthai:farisachugthai-patch-1

Conversation

@farisachugthai

Copy link
Copy Markdown

g:gruvbox_contrast_dark and g:gruvbox_contrast_light were evaluated one after another. In order to correctly set the contrast to dark, one would have to define both contrast_dark as true and contrast_light as false; otherwise:

if !exists('g:gruvbox_contrast_light') evaluates to True, and a user who actually has "g:gruvbox_contrast_dark" = 1 set will still end up with medium contrast.

g:gruvbox_contrast_dark and g:gruvbox_contrast_light were evaluated one after another. In order to correctly set the contrast to dark, one would have to define both contrast_dark as true and contrast_light as false; otherwise:

`if !exists('g:gruvbox_contrast_light')` evaluates to True, and a user who actually has "g:gruvbox_contrast_dark" = 1 set will still end up with medium contrast.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant