aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/with_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2025-01-08 17:56:21 +0000
committerGitHub <noreply@github.com>2025-01-08 17:56:21 +0000
commitc4b658fed8d96a4c4098ce59b01b228ef0bda62e (patch)
tree50f10b101e425a04c646d5970eed88a4318f2069 /test/functional/lua/with_spec.lua
parent17b46d01e29443452ae8b607017f8f5c585d3f0a (diff)
parent6257270040bc5c61a489f7fb9d4102223c36cf89 (diff)
downloadrneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.tar.gz
rneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.tar.bz2
rneovim-c4b658fed8d96a4c4098ce59b01b228ef0bda62e.zip
Merge pull request #31112 from famiu/refactor/options/set_option_for
refactor(options): set option value for non-current context directly
Diffstat (limited to 'test/functional/lua/with_spec.lua')
-rw-r--r--test/functional/lua/with_spec.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/functional/lua/with_spec.lua b/test/functional/lua/with_spec.lua
index 92e798e7f3..a68a7722a4 100644
--- a/test/functional/lua/with_spec.lua
+++ b/test/functional/lua/with_spec.lua
@@ -882,11 +882,7 @@ describe('vim._with', function()
eq({
bo = { cms_cur = '// %s', cms_other = '-- %s', ul_cur = 250, ul_other = -123456 },
wo = { ve_cur = 'insert', ve_other = 'block', winbl_cur = 25, winbl_other = 10 },
- -- Global `winbl` inside context ideally should be untouched and equal
- -- to 50. It seems to be equal to 0 because `context.buf` uses
- -- `aucmd_prepbuf` C approach which has no guarantees about window or
- -- window option values inside context.
- go = { cms = '-- %s', ul = 0, ve = 'none', winbl = 0, lmap = 'xy,yx' },
+ go = { cms = '-- %s', ul = 0, ve = 'none', winbl = 50, lmap = 'xy,yx' },
}, out.inner)
eq(out.before, out.after)
end)