diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-23 16:32:15 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-23 18:24:14 +0800 |
commit | 0ba27bb51d3297aec43e78050cc3adcf6879db22 (patch) | |
tree | 9ea8990c9bebeca06d5a5e3989f0a70239797610 /test/functional/lua/vim_spec.lua | |
parent | 99265d099c2c366eea936438734a323d1fb9b341 (diff) | |
download | rneovim-0ba27bb51d3297aec43e78050cc3adcf6879db22.tar.gz rneovim-0ba27bb51d3297aec43e78050cc3adcf6879db22.tar.bz2 rneovim-0ba27bb51d3297aec43e78050cc3adcf6879db22.zip |
vim-patch:9.0.1710: scrolloff options work slightly different
Problem: sidescrolloff and scrolloff options work slightly
different than other global-local options
Solution: Make it behave consistent for all global-local options
It was noticed, that sidescrolloff and scrolloff options behave
differently in comparison to other global-local window options like
'listchars'
So make those two behave like other global-local options. Also add some
extra documentation for a few special local-window options.
Add a few tests to make sure all global-local window options behave
similar
closes: vim/vim#12956
closes: vim/vim#12643
https://github.com/vim/vim/commit/4a8eb6e7a9df10f79bf95301ced012f0d6a13088
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r-- | test/functional/lua/vim_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index 35e87b71da..9338e95d10 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -1548,7 +1548,7 @@ describe('lua stdlib', function() eq(100, funcs.luaeval "vim.wo.scrolloff") exec_lua [[ vim.wo[0][0].scrolloff = 200 - vim.cmd "split" + vim.cmd "enew" ]] eq(100, funcs.luaeval "vim.wo.scrolloff") end) |