mirror of
https://github.com/neovim/neovim.git
synced 2026-05-30 00:35:42 +00:00
Problem: We normally get the background color via continuous reporting. However, if we were backgrounded while the light/dark mode changed, we won't have received the report, and we'll have the wrong background color. Without this change, if you background nvim, toggle the light/dark mode, resume, and check `:set bg`, it will not match the current state. Solution: Query it on resume as well. (This requires separating the query from the flush, to just do the query along with all the others, while waiting to flush until we've set up uv.) With this change, if you background nvim, toggle the light/dark mode, resume, and check `:set bg`, it will have updated.