diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-06-15 09:12:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-15 09:12:15 -0400 |
| commit | 436761cba256bd55404996c9358ed00f40582f9f (patch) | |
| tree | 78c59ac832e862599d4669aa942b706b2e8115d5 /test/functional/vimscript/executable_spec.lua | |
| parent | ebc69b387cfae18b55c87a37170fb499ecb7fbf2 (diff) | |
| download | rneovim-436761cba256bd55404996c9358ed00f40582f9f.tar.gz rneovim-436761cba256bd55404996c9358ed00f40582f9f.tar.bz2 rneovim-436761cba256bd55404996c9358ed00f40582f9f.zip | |
fix(tui): late-arriving OSC11 response triggers OptionSet #40270
Problem:
This test is flaky since fff9897ce3f2 :
FAILED ...Xtest_xdg_terminal/test/functional/terminal/tui_spec.lua @ 4359:
TUI bg color does not trigger OptionSet from automatic background processing
Expected values to be equal.
Expected:
{ true, 0 }
Actual:
{ true, 1 }
stack traceback:
...Xtest_xdg_terminal/test/functional/terminal/tui_spec.lua:4380:
in function <...Xtest_xdg_terminal/test/functional/terminal/tui_spec.lua:4359>
`apply_optionset_autocmd_now` does not emit `OptionSet` during startup:
void apply_optionset_autocmd_now(...) {
// Don't do this while starting up, failure or recursively.
if (starting || errmsg != NULL || *get_vim_var_str(VV_OPTION_TYPE) != NUL) {
return;
}
...
}
but if OSC 11 response arrives AFTER VimEnter, then
`nvim_set_option_value('background',…)` call triggers `OptionSet`.
Solution:
Use `:noautocmd` when setting 'background'.
Per fff9897ce3f2, OSC11 is not intended to trigger OptionSet.
fix https://github.com/neovim/neovim/issues/40235
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions