Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unconditionally define GUI colors in 256-colors terminals.
Some users have complained that setting `termguicolors` *after* loading the color scheme does not make GUI colors immediately available: rather, reloading the color scheme is required. Initially, I thought that there was no sensible use case for setting `termguicolors` after loading a color scheme, but that is not the case apparently. The most compelling reason for having GUI colors defined in all sufficiently capable terminals is Vim's `:gui` command. This is what user jeanluc2020 reported [here](vim/colorschemes#54): >I sometimes start vim, editing a file, and later realize this will be >a longer editing session and I want to have my terminal back during that >session without jumping in and out of vim or suspending it all the time, >so i type ":gui" to continue working on the file. This commit implements a quick fix that should solve this issue. This solution is suboptimal, however, because `gui` and `cterm` definitions are still kept separate. Ideally, one would want to define each highlight group only once. But then, is it necessary to define `cterm` attributes when running in the GUI?
- Loading branch information