diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-11 21:09:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 21:09:11 +0800 |
commit | 6d0c61d90d316473eee0729363e20bf06825b09b (patch) | |
tree | 0fcae1948517bf620bd4f90f2009a896ebfb637e /test/functional/api/vim_spec.lua | |
parent | 8065fc9aaeff734f38109aec52bf852379a5a183 (diff) | |
download | rneovim-6d0c61d90d316473eee0729363e20bf06825b09b.tar.gz rneovim-6d0c61d90d316473eee0729363e20bf06825b09b.tar.bz2 rneovim-6d0c61d90d316473eee0729363e20bf06825b09b.zip |
fix(api): set script context when setting usercmd or option (#22624)
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 08abf82f47..48ac491ade 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -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) |