mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
fix(mouse): click on 'statuscolumn' with 'rightleft'
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user