ensure Todo highlight on dark bg is at least 233#71
ensure Todo highlight on dark bg is at least 233#71atweiden wants to merge 1 commit intojunegunn:masterfrom
Conversation
|
Reason for PR: " s:light_bg_2 becomes background colour for |hl-Todo| when colorscheme
" is seoul256-light
"
" n.b. it cannot exceed 256, hence with |g:seoul256_light_background|
" set to 256, |hl-Todo| background colour matches seoul256-light
" background colour, thereby enabling opting out of background colour
" contrast
let s:light_bg_2 = min([s:light_bg + 2, 256])
" s:dark_bg_2 becomes background colour for |hl-Todo| when colorscheme
" is seoul256
"
" n.b. if |g:seoul256_background| is set to 233, |hl-Todo| background
" colour drops to 16 — this is noticeably higher contrast than in the
" seoul256-light corollary, where users can completely opt out of contrast
let s:dark_bg_2 = s:dark_bg > 233 ? s:dark_bg - 2 : 16This PR should only affect users who set I agree it’s better said to be a minor nitpick. |
So the difference is only noticeable to the users who switch between light and dark modes, using What I didn't understand at first was your initial expression
|
Yes. Alas, I use seoul256-light for gvim and seoul256 for vim.
Support for 16 would be a welcome addition. 233 is perfectly fine, but either way. |
- note
- existing s:dark_bg_2 handling is beneficial for hl-VertSplit
- hence
- this variable is kept in tact
- previously
- with g:seoul256_background set to 233
- todo syntax was rendered with dark background contrast
- as bg colors dropped to #000000
- now
- use the equivalent to light bg handling for dark bg todos
- for equivalently balanced visual effect
- see: s:light_bg_2

Uh oh!
There was an error while loading. Please reload this page.