vim-patch:8.2.4094: 'virtualedit' is window-local but using buffer-local enum

Problem:    'virtualedit' is window-local but using buffer-local enum.
Solution:   Use window-local enum. (closes vim/vim#9529)
e1833bfd01
This commit is contained in:
zeertzjq 2022-01-15 19:21:17 +08:00
parent 87e54f123a
commit 6c22e5fd1a
2 changed files with 2 additions and 2 deletions

View File

@ -841,7 +841,6 @@ enum {
BV_WM,
BV_VSTS,
BV_VTS,
BV_VE,
BV_COUNT, // must be the last one
};
@ -872,6 +871,7 @@ enum {
WV_LBR,
WV_NU,
WV_RNU,
WV_VE,
WV_NUW,
WV_PVW,
WV_RL,

View File

@ -2736,7 +2736,7 @@ return {
{
full_name='virtualedit', abbreviation='ve',
short_desc=N_("when to use virtual editing"),
type='string', list='onecomma', scope={'global', 'buffer'},
type='string', list='onecomma', scope={'global', 'window'},
deny_duplicates=true,
redraw={'curswant'},
varname='p_ve',