mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
fix(mouse): statusline click registered as statuscolumn (#21748)
fix(statuscolumn): statusline click registered as statuscolumn Problem: Status line click is registered as status status column click. Solution: Check that mouse is not on the status line. Resolve https://github.com/luukvbaal/statuscol.nvim/issues/4.
This commit is contained in:
@@ -366,6 +366,14 @@ describe('statuscolumn', function()
|
||||
eq('0 3 r 7', eval("g:testvar"))
|
||||
meths.input_mouse('right', 'press', '', 0, 3, 0)
|
||||
eq('0 4 r 7', eval("g:testvar"))
|
||||
command('set laststatus=2 winbar=%f')
|
||||
command('let g:testvar=""')
|
||||
-- Check that winbar click doesn't register as statuscolumn click
|
||||
meths.input_mouse('right', 'press', '', 0, 0, 0)
|
||||
eq('', eval("g:testvar"))
|
||||
-- Check that statusline click doesn't register as statuscolumn click
|
||||
meths.input_mouse('right', 'press', '', 0, 12, 0)
|
||||
eq('', eval("g:testvar"))
|
||||
end)
|
||||
|
||||
it('fits maximum multibyte foldcolumn #21759', function()
|
||||
|
||||
Reference in New Issue
Block a user