diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-10-10 09:15:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-09 18:15:46 -0700 |
commit | f4359b5dbdd5ed9aa230532382edd7eb6cd0a61b (patch) | |
tree | 60e8a3ff5d503517488510a6dd5600c12dc5b370 /test/functional/terminal/mouse_spec.lua | |
parent | 65b8232260a1e95f53c6bf704dfa02cdd3125262 (diff) | |
download | rneovim-f4359b5dbdd5ed9aa230532382edd7eb6cd0a61b.tar.gz rneovim-f4359b5dbdd5ed9aa230532382edd7eb6cd0a61b.tar.bz2 rneovim-f4359b5dbdd5ed9aa230532382edd7eb6cd0a61b.zip |
vim-patch:8.2.3461: distinguish Normal and Terminal-Normal mode #15878
Problem: Cannot distinguish Normal and Terminal-Normal mode.
Solution: Make mode() return "nt" for Terminal-Normal mode. (issue vim/vim#8856)
https://github.com/vim/vim/commit/72406a4bd2896915b6f541e26d41521a59b1f846
Diffstat (limited to 'test/functional/terminal/mouse_spec.lua')
-rw-r--r-- | test/functional/terminal/mouse_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/terminal/mouse_spec.lua b/test/functional/terminal/mouse_spec.lua index 0eb5901b3b..3d8441b93c 100644 --- a/test/functional/terminal/mouse_spec.lua +++ b/test/functional/terminal/mouse_spec.lua @@ -33,16 +33,16 @@ describe(':terminal mouse', function() describe('when the terminal has focus', function() it('will exit focus on mouse-scroll', function() - eq('t', eval('mode()')) + eq('t', eval('mode(1)')) feed('<ScrollWheelUp><0,0>') - eq('n', eval('mode()')) + eq('nt', eval('mode(1)')) end) it('will exit focus on <C-\\> + mouse-scroll', function() - eq('t', eval('mode()')) + eq('t', eval('mode(1)')) feed('<C-\\>') feed('<ScrollWheelUp><0,0>') - eq('n', eval('mode()')) + eq('nt', eval('mode(1)')) end) describe('with mouse events enabled by the program', function() @@ -94,7 +94,7 @@ describe(':terminal mouse', function() -- When the display area such as a number is clicked, it returns to the -- normal mode. feed('<LeftMouse><3,0>') - eq('n', eval('mode()')) + eq('nt', eval('mode(1)')) screen:expect([[ {7: 11 }^line28 | {7: 12 }line29 | |