fix(api): set script context when setting usercmd or option (#22624)

This commit is contained in:
zeertzjq
2023-03-11 21:09:11 +08:00
committed by GitHub
parent 8065fc9aae
commit 6d0c61d90d
4 changed files with 51 additions and 16 deletions

View File

@@ -2832,6 +2832,24 @@ describe('API', function()
type = "boolean",
was_set = true
}, meths.get_option_info'showcmd')
meths.set_option_value('showcmd', true, {})
eq({
allows_duplicates = true,
commalist = false,
default = true,
flaglist = false,
global_local = false,
last_set_chan = 1,
last_set_linenr = 0,
last_set_sid = -9,
name = "showcmd",
scope = "global",
shortname = "sc",
type = "boolean",
was_set = true
}, meths.get_option_info'showcmd')
end)
end)