mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
feat(ui-ext): make 'mousemoveevent' a ui_option
This commit is contained in:
@@ -207,6 +207,7 @@ the editor.
|
|||||||
'guifontwide'
|
'guifontwide'
|
||||||
'linespace'
|
'linespace'
|
||||||
'mousefocus'
|
'mousefocus'
|
||||||
|
'mousemoveevent'
|
||||||
'pumblend'
|
'pumblend'
|
||||||
'showtabline'
|
'showtabline'
|
||||||
'termguicolors'
|
'termguicolors'
|
||||||
|
@@ -1625,6 +1625,7 @@ return {
|
|||||||
full_name='mousemoveevent', abbreviation='mousemev',
|
full_name='mousemoveevent', abbreviation='mousemev',
|
||||||
short_desc=N_("deliver mouse move events to input queue"),
|
short_desc=N_("deliver mouse move events to input queue"),
|
||||||
type='bool', scope={'global'},
|
type='bool', scope={'global'},
|
||||||
|
redraw={'ui_option'},
|
||||||
varname='p_mousemev',
|
varname='p_mousemev',
|
||||||
defaults={if_true=false}
|
defaults={if_true=false}
|
||||||
},
|
},
|
||||||
|
@@ -19,6 +19,7 @@ describe('UI receives option updates', function()
|
|||||||
linespace=0,
|
linespace=0,
|
||||||
pumblend=0,
|
pumblend=0,
|
||||||
mousefocus=false,
|
mousefocus=false,
|
||||||
|
mousemoveevent=false,
|
||||||
showtabline=1,
|
showtabline=1,
|
||||||
termguicolors=false,
|
termguicolors=false,
|
||||||
ttimeout=true,
|
ttimeout=true,
|
||||||
@@ -131,6 +132,12 @@ describe('UI receives option updates', function()
|
|||||||
eq(expected, screen.options)
|
eq(expected, screen.options)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
command("set mousemoveevent")
|
||||||
|
expected.mousemoveevent = true
|
||||||
|
screen:expect(function()
|
||||||
|
eq(expected, screen.options)
|
||||||
|
end)
|
||||||
|
|
||||||
command("set nottimeout")
|
command("set nottimeout")
|
||||||
expected.ttimeout = false
|
expected.ttimeout = false
|
||||||
screen:expect(function()
|
screen:expect(function()
|
||||||
|
Reference in New Issue
Block a user