mirror of
https://github.com/neovim/neovim.git
synced 2026-07-18 07:01:19 +00:00
fix(startup): emitting useless OptionSet #39830
Problem: During startup, we manually trigger a useless and misleading `OptionSet` event, which doesn't set `v:option_*` values (this is a limitation of `nvim_exec_autocmds`).ad4bc2d90c/runtime/lua/vim/_core/defaults.lua (L939). Solution: The `nvim_exec_autocmds('OptionSet',…)` call does not serve any purpose since5cbb9d613b, so just drop it.
This commit is contained in:
2
runtime/lua/vim/_meta/options.gen.lua
generated
2
runtime/lua/vim/_meta/options.gen.lua
generated
@@ -224,7 +224,7 @@ vim.go.awa = vim.go.autowriteall
|
||||
|
||||
--- When set to "dark" or "light", adjusts the default color groups for
|
||||
--- that background type. The `TUI` or other UI sets this on startup
|
||||
--- (triggering `OptionSet`) if it can detect the background color.
|
||||
--- if it can detect the background color.
|
||||
---
|
||||
--- This option does NOT change the background color, it tells Nvim what
|
||||
--- the "inherited" (terminal/GUI) background looks like.
|
||||
|
||||
Reference in New Issue
Block a user