diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-01-09 12:32:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 12:32:25 +0800 |
commit | 19c9572d3626cde8503ee9061fa334b73f257b03 (patch) | |
tree | 9ac8478d974b5abd3a3a662348a4c7f58cc645db /test/functional/lua/with_spec.lua | |
parent | 822313e42b5b8d51ea0b3f1f97c47026f2c7e2e2 (diff) | |
download | rneovim-19c9572d3626cde8503ee9061fa334b73f257b03.tar.gz rneovim-19c9572d3626cde8503ee9061fa334b73f257b03.tar.bz2 rneovim-19c9572d3626cde8503ee9061fa334b73f257b03.zip |
Revert "refactor(options): set option value for non-current context directly" (#31924)
Reverts #31112
Diffstat (limited to 'test/functional/lua/with_spec.lua')
-rw-r--r-- | test/functional/lua/with_spec.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/lua/with_spec.lua b/test/functional/lua/with_spec.lua index a68a7722a4..92e798e7f3 100644 --- a/test/functional/lua/with_spec.lua +++ b/test/functional/lua/with_spec.lua @@ -882,7 +882,11 @@ 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 }, - go = { cms = '-- %s', ul = 0, ve = 'none', winbl = 50, lmap = 'xy,yx' }, + -- 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' }, }, out.inner) eq(out.before, out.after) end) |