mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
@@ -4022,7 +4022,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'mousefocus'* *'mousef'* *'nomousefocus'* *'nomousef'*
|
*'mousefocus'* *'mousef'* *'nomousefocus'* *'nomousef'*
|
||||||
'mousefocus' 'mousef' boolean (default off)
|
'mousefocus' 'mousef' boolean (default off)
|
||||||
global
|
global
|
||||||
{only works in the GUI}
|
|
||||||
The window that the mouse pointer is on is automatically activated.
|
The window that the mouse pointer is on is automatically activated.
|
||||||
When changing the window layout or window focus in another way, the
|
When changing the window layout or window focus in another way, the
|
||||||
mouse pointer is moved to the window with keyboard focus. Off is the
|
mouse pointer is moved to the window with keyboard focus. Off is the
|
||||||
|
@@ -185,6 +185,7 @@ the editor.
|
|||||||
'guifont'
|
'guifont'
|
||||||
'guifontwide'
|
'guifontwide'
|
||||||
'linespace'
|
'linespace'
|
||||||
|
'mousefocus'
|
||||||
'pumblend'
|
'pumblend'
|
||||||
'showtabline'
|
'showtabline'
|
||||||
'termguicolors'
|
'termguicolors'
|
||||||
|
@@ -512,6 +512,7 @@ EXTERN long p_mle; // 'modelineexpr'
|
|||||||
EXTERN long p_mls; // 'modelines'
|
EXTERN long p_mls; // 'modelines'
|
||||||
EXTERN char_u *p_mouse; // 'mouse'
|
EXTERN char_u *p_mouse; // 'mouse'
|
||||||
EXTERN char_u *p_mousem; // 'mousemodel'
|
EXTERN char_u *p_mousem; // 'mousemodel'
|
||||||
|
EXTERN long p_mousef; // 'mousefocus'
|
||||||
EXTERN long p_mouset; // 'mousetime'
|
EXTERN long p_mouset; // 'mousetime'
|
||||||
EXTERN int p_more; // 'more'
|
EXTERN int p_more; // 'more'
|
||||||
EXTERN char_u *p_opfunc; // 'operatorfunc'
|
EXTERN char_u *p_opfunc; // 'operatorfunc'
|
||||||
|
@@ -1588,7 +1588,8 @@ return {
|
|||||||
full_name='mousefocus', abbreviation='mousef',
|
full_name='mousefocus', abbreviation='mousef',
|
||||||
type='bool', scope={'global'},
|
type='bool', scope={'global'},
|
||||||
vi_def=true,
|
vi_def=true,
|
||||||
enable_if=false,
|
redraw={'ui_option'},
|
||||||
|
varname='p_mousef',
|
||||||
defaults={if_true={vi=false}}
|
defaults={if_true={vi=false}}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@@ -17,6 +17,7 @@ describe('UI receives option updates', function()
|
|||||||
guifontwide='',
|
guifontwide='',
|
||||||
linespace=0,
|
linespace=0,
|
||||||
pumblend=0,
|
pumblend=0,
|
||||||
|
mousefocus=false,
|
||||||
showtabline=1,
|
showtabline=1,
|
||||||
termguicolors=false,
|
termguicolors=false,
|
||||||
ttimeout=true,
|
ttimeout=true,
|
||||||
@@ -109,6 +110,12 @@ describe('UI receives option updates', function()
|
|||||||
eq(expected, screen.options)
|
eq(expected, screen.options)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
command("set mousefocus")
|
||||||
|
expected.mousefocus = 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