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' boolean (default off)
|
||||
global
|
||||
{only works in the GUI}
|
||||
The window that the mouse pointer is on is automatically activated.
|
||||
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
|
||||
|
@@ -185,6 +185,7 @@ the editor.
|
||||
'guifont'
|
||||
'guifontwide'
|
||||
'linespace'
|
||||
'mousefocus'
|
||||
'pumblend'
|
||||
'showtabline'
|
||||
'termguicolors'
|
||||
|
@@ -512,6 +512,7 @@ EXTERN long p_mle; // 'modelineexpr'
|
||||
EXTERN long p_mls; // 'modelines'
|
||||
EXTERN char_u *p_mouse; // 'mouse'
|
||||
EXTERN char_u *p_mousem; // 'mousemodel'
|
||||
EXTERN long p_mousef; // 'mousefocus'
|
||||
EXTERN long p_mouset; // 'mousetime'
|
||||
EXTERN int p_more; // 'more'
|
||||
EXTERN char_u *p_opfunc; // 'operatorfunc'
|
||||
|
@@ -1588,7 +1588,8 @@ return {
|
||||
full_name='mousefocus', abbreviation='mousef',
|
||||
type='bool', scope={'global'},
|
||||
vi_def=true,
|
||||
enable_if=false,
|
||||
redraw={'ui_option'},
|
||||
varname='p_mousef',
|
||||
defaults={if_true={vi=false}}
|
||||
},
|
||||
{
|
||||
|
@@ -17,6 +17,7 @@ describe('UI receives option updates', function()
|
||||
guifontwide='',
|
||||
linespace=0,
|
||||
pumblend=0,
|
||||
mousefocus=false,
|
||||
showtabline=1,
|
||||
termguicolors=false,
|
||||
ttimeout=true,
|
||||
@@ -109,6 +110,12 @@ describe('UI receives option updates', function()
|
||||
eq(expected, screen.options)
|
||||
end)
|
||||
|
||||
command("set mousefocus")
|
||||
expected.mousefocus = true
|
||||
screen:expect(function()
|
||||
eq(expected, screen.options)
|
||||
end)
|
||||
|
||||
command("set nottimeout")
|
||||
expected.ttimeout = false
|
||||
screen:expect(function()
|
||||
|
Reference in New Issue
Block a user