diff options
| author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-12-16 11:18:45 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 11:18:45 -0600 |
| commit | 8fb7419d7c5e2df3b792d18fa56f973088e69be2 (patch) | |
| tree | 249b027da2469e716b5fea4b243ca9a59953fade /runtime/doc/vim_diff.txt | |
| parent | 7840760776cf8dbaa580ced87aec0222dbb693d7 (diff) | |
| download | rneovim-8fb7419d7c5e2df3b792d18fa56f973088e69be2.tar.gz rneovim-8fb7419d7c5e2df3b792d18fa56f973088e69be2.tar.bz2 rneovim-8fb7419d7c5e2df3b792d18fa56f973088e69be2.zip | |
refactor: only reload colorscheme if &bg changed (#26598)
Currently, setting &bg at all re-initializes highlights and reloads
the active colorscheme, even if the actual value of &bg has not changed.
With https://github.com/neovim/neovim/pull/26595 this causes a
regression since &bg is set unconditionally based on the value detected
from the terminal.
Instead, only reload the colorscheme if the actual value of &bg has
changed.
Diffstat (limited to 'runtime/doc/vim_diff.txt')
| -rw-r--r-- | runtime/doc/vim_diff.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index e0ad0ff0f9..ca260246fc 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -299,6 +299,8 @@ 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 |