vim-patch:8.1.0864 Make 'scrolloff' and 'sidescrolloff' options window local (#11854)

Problem: cannot have a local value for 'scrolloff' and 'sidescrolloff'

Author: Bram Moolenar

375e339007
This commit is contained in:
Will Eccles
2020-03-17 15:05:34 -04:00
committed by GitHub
parent 5a5c2f0290
commit 87d892afa0
14 changed files with 245 additions and 126 deletions

View File

@@ -1990,7 +1990,7 @@ return {
},
{
full_name='scrolloff', abbreviation='so',
type='number', scope={'global'},
type='number', scope={'global', 'window'},
vi_def=true,
vim=true,
redraw={'all_windows'},
@@ -2229,10 +2229,10 @@ return {
},
{
full_name='sidescrolloff', abbreviation='siso',
type='number', scope={'global'},
type='number', scope={'global', 'window'},
vi_def=true,
vim=true,
redraw={'current_buffer'},
redraw={'all_windows'},
varname='p_siso',
defaults={if_true={vi=0}}
},