mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
vim-patch:9.1.0004: reloading colorscheme when not changing 'background' (#26877)
Problem: reloading colorscheme when not changing 'background'
Solution: Check, if the background option value actually changed,
if not, return early.
Only reload colorscheme when bg is changed
Currently the highlight groups are re-initialized and the colorscheme
(if any) is reloaded anytime 'background' is set, even if it is not
changed. This is unnecessary, because if the value was not changed then
there is no need to change highlight groups or do anything with the
colorscheme. Instead, only reload the colorscheme if the value of
'background' was actually changed.
closes: vim/vim#13700
83ad2726ff
Co-authored-by: Gregory Anders <greg@gpanders.com>
This commit is contained in:
@@ -302,8 +302,6 @@ Options:
|
||||
global-local string options work.
|
||||
|
||||
'autoread' works in the terminal (if it supports "focus" events)
|
||||
'background' colorscheme is only reloaded if value is changed, not every
|
||||
time it is set
|
||||
'cpoptions' flags: |cpo-_|
|
||||
'diffopt' "linematch" feature
|
||||
'exrc' searches for ".nvim.lua", ".nvimrc", or ".exrc" files. The
|
||||
|
||||
Reference in New Issue
Block a user