aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-04 05:45:26 +0800
committerGitHub <noreply@github.com>2024-01-04 05:45:26 +0800
commit5dbf6ab9b1027b4b5d3703a0ccc1d298cbe6c018 (patch)
tree4292f5dc22f166e10413892b3b33c906910f6f2e
parent12cdee72452b3013a2d01ef50cf980e1fa740242 (diff)
downloadrneovim-5dbf6ab9b1027b4b5d3703a0ccc1d298cbe6c018.tar.gz
rneovim-5dbf6ab9b1027b4b5d3703a0ccc1d298cbe6c018.tar.bz2
rneovim-5dbf6ab9b1027b4b5d3703a0ccc1d298cbe6c018.zip
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 https://github.com/vim/vim/commit/83ad2726ff56db70cb2da78e1e4ea0e09941c73b Co-authored-by: Gregory Anders <greg@gpanders.com>
-rw-r--r--runtime/doc/vim_diff.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 5b0b5655b4..279fdd646f 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -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