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

4a8eb6e7a9

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2023-08-23 16:32:15 +08:00
parent 99265d099c
commit 0ba27bb51d
7 changed files with 162 additions and 17 deletions

View File

@@ -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)