mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fix(api): set script context when setting usercmd or option (#22624)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user