fix(mouse): click on 'statuscolumn' with 'rightleft'

This commit is contained in:
zeertzjq
2023-09-11 07:38:31 +08:00
parent af0684f0d5
commit 1fc29b920f
2 changed files with 30 additions and 2 deletions

View File

@@ -532,6 +532,24 @@ 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('rightbelow vsplit')
meths.input_mouse('left', 'press', '', 0, 0, 27)
eq('0 1 l 4', eval("g:testvar"))
meths.input_mouse('right', 'press', '', 0, 3, 27)
eq('0 1 r 7', eval("g:testvar"))
command('setlocal rightleft')
meths.input_mouse('left', 'press', '', 0, 0, 52)
eq('0 1 l 4', eval("g:testvar"))
meths.input_mouse('right', 'press', '', 0, 3, 52)
eq('0 1 r 7', eval("g:testvar"))
command('wincmd H')
meths.input_mouse('left', 'press', '', 0, 0, 25)
eq('0 1 l 4', eval("g:testvar"))
meths.input_mouse('right', 'press', '', 0, 3, 25)
eq('0 1 r 7', eval("g:testvar"))
command('close')
command('set laststatus=2 winbar=%f')
command('let g:testvar = ""')
-- Check that winbar click doesn't register as statuscolumn click