diff options
author | Scott Prager <splinterofchaos@gmail.com> | 2015-04-08 12:27:52 -0400 |
---|---|---|
committer | Scott Prager <splinterofchaos@gmail.com> | 2015-04-08 12:27:52 -0400 |
commit | e1bac3b84090d07afa669a8b79816c28813c605e (patch) | |
tree | c9594516a80bbba044c8097f0812ca713519cba4 /test/functional/terminal/mouse_spec.lua | |
parent | 5f98c3272577f8633da489769372d47c26c0a894 (diff) | |
parent | 8cac2eea751379e0195b5160f9d14d19f8866e71 (diff) | |
download | rneovim-e1bac3b84090d07afa669a8b79816c28813c605e.tar.gz rneovim-e1bac3b84090d07afa669a8b79816c28813c605e.tar.bz2 rneovim-e1bac3b84090d07afa669a8b79816c28813c605e.zip |
Merge pull request #2346 from splinterofchaos/fix-terminal
[RFC] terminal: Handle loss of focus in event loop.
Diffstat (limited to 'test/functional/terminal/mouse_spec.lua')
-rw-r--r-- | test/functional/terminal/mouse_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/terminal/mouse_spec.lua b/test/functional/terminal/mouse_spec.lua index b8f6214f8f..4def4dd7f8 100644 --- a/test/functional/terminal/mouse_spec.lua +++ b/test/functional/terminal/mouse_spec.lua @@ -50,6 +50,20 @@ describe('terminal mouse', function() ]]) end) + it('will exit focus after <C-\\>, then scrolled', function() + feed('<C-\\>') + feed('<MouseDown><0,0>') + screen:expect([[ + line23 | + line24 | + line25 | + line26 | + line27 | + ^line28 | + | + ]]) + end) + describe('with mouse events enabled by the program', function() before_each(function() thelpers.enable_mouse() |