mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix: remote UI may get invalid 'pumblend' value #19379
fixes: https://github.com/neovim/neovim/issues/19340
This commit is contained in:
parent
6645f59832
commit
86f0da922f
@ -4343,7 +4343,7 @@ static char *set_bool_option(const int opt_idx, char_u *const varp, const int va
|
|||||||
|
|
||||||
if (options[opt_idx].flags & P_UI_OPTION) {
|
if (options[opt_idx].flags & P_UI_OPTION) {
|
||||||
ui_call_option_set(cstr_as_string(options[opt_idx].fullname),
|
ui_call_option_set(cstr_as_string(options[opt_idx].fullname),
|
||||||
BOOLEAN_OBJ(value));
|
BOOLEAN_OBJ(*varp));
|
||||||
}
|
}
|
||||||
|
|
||||||
comp_col(); // in case 'ruler' or 'showcmd' changed
|
comp_col(); // in case 'ruler' or 'showcmd' changed
|
||||||
@ -4784,7 +4784,7 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, char *errbuf,
|
|||||||
|
|
||||||
if (errmsg == NULL && options[opt_idx].flags & P_UI_OPTION) {
|
if (errmsg == NULL && options[opt_idx].flags & P_UI_OPTION) {
|
||||||
ui_call_option_set(cstr_as_string(options[opt_idx].fullname),
|
ui_call_option_set(cstr_as_string(options[opt_idx].fullname),
|
||||||
INTEGER_OBJ(value));
|
INTEGER_OBJ(*pp));
|
||||||
}
|
}
|
||||||
|
|
||||||
comp_col(); // in case 'columns' or 'ls' changed
|
comp_col(); // in case 'columns' or 'ls' changed
|
||||||
|
@ -87,6 +87,12 @@ describe('UI receives option updates', function()
|
|||||||
eq(expected, screen.options)
|
eq(expected, screen.options)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
command("set pumblend=-1")
|
||||||
|
expected.pumblend = 0
|
||||||
|
screen:expect(function()
|
||||||
|
eq(expected, screen.options)
|
||||||
|
end)
|
||||||
|
|
||||||
command("set guifont=Comic\\ Sans")
|
command("set guifont=Comic\\ Sans")
|
||||||
expected.guifont = "Comic Sans"
|
expected.guifont = "Comic Sans"
|
||||||
screen:expect(function()
|
screen:expect(function()
|
||||||
|
Loading…
Reference in New Issue
Block a user