mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(terminal): don't lose focus on <MouseMove>
(cherry picked from commit e96b3133ef
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
88f0179834
commit
edbe109762
@@ -67,8 +67,23 @@ describe(':terminal mouse', function()
|
||||
eq('nt', eval('mode(1)'))
|
||||
end)
|
||||
|
||||
it('does not leave terminal mode on left-release', function()
|
||||
feed('<LeftRelease>')
|
||||
it('will not exit focus on left-release', function()
|
||||
eq('t', eval('mode(1)'))
|
||||
feed('<LeftRelease><0,0>')
|
||||
eq('t', eval('mode(1)'))
|
||||
command('setlocal number')
|
||||
eq('t', eval('mode(1)'))
|
||||
feed('<LeftRelease><0,0>')
|
||||
eq('t', eval('mode(1)'))
|
||||
end)
|
||||
|
||||
it('will not exit focus on mouse movement', function()
|
||||
eq('t', eval('mode(1)'))
|
||||
feed('<MouseMove><0,0>')
|
||||
eq('t', eval('mode(1)'))
|
||||
command('setlocal number')
|
||||
eq('t', eval('mode(1)'))
|
||||
feed('<MouseMove><0,0>')
|
||||
eq('t', eval('mode(1)'))
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user