fix(mouse): don't treat click on hsep as click on statusline (#29565)

This allows showing popup menu when right-clicking on hsep or cmdline.
This commit is contained in:
zeertzjq
2024-07-05 07:24:45 +08:00
committed by GitHub
parent 6cbba2b48d
commit 81d4e96bc8
3 changed files with 27 additions and 5 deletions

View File

@@ -652,9 +652,6 @@ describe('statuscolumn', function()
-- Check that statusline click doesn't register as statuscolumn click
api.nvim_input_mouse('right', 'press', '', 0, 12, 0)
eq('', eval('g:testvar'))
-- Check that cmdline click doesn't register as statuscolumn click
api.nvim_input_mouse('right', 'press', '', 0, 13, 0)
eq('', eval('g:testvar'))
end)
it('clicks and highlights work with control characters', function()