aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/mouse_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-01-15 17:50:43 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-01-15 19:48:49 +0100
commit5a836d4767b76b0a5f5576f91c7022d4e106f814 (patch)
tree48f199547fcae24bb52128a388a59038a493994a /test/functional/ui/mouse_spec.lua
parent95fa71c6d2b4a2d86bc1e4a984efbd188fab1382 (diff)
downloadrneovim-5a836d4767b76b0a5f5576f91c7022d4e106f814.tar.gz
rneovim-5a836d4767b76b0a5f5576f91c7022d4e106f814.tar.bz2
rneovim-5a836d4767b76b0a5f5576f91c7022d4e106f814.zip
screen: don't unconditionally clear messages on window scroll
In vim, scrolling a window might mess up the cmdline. To keep it simple, cmdline was always cleared for any window scroll. In nvim, where safe scrolling is implemented in the TUI layer, this problem doesn't exist. Clearing the message on scrolling, when we not do it e.g when switching tabs is a bit weird, as the former is a much smaller context change. A vim patch introduced the possibility to avoid the cmdlline clear for redraws caused by async events. This case will now trivially be covered, as the redraw is always avoided. vim-patch:8.0.0592: if a job writes to a buffer screen is not updated
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r--test/functional/ui/mouse_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua
index 3890f0f7ba..8d35df6f48 100644
--- a/test/functional/ui/mouse_spec.lua
+++ b/test/functional/ui/mouse_spec.lua
@@ -662,7 +662,7 @@ describe('ui/mouse/input', function()
|
{0:~ }|
{4:[No Name] [+] }|
- |
+ :vsp |
]])
feed('<ScrollWheelUp><27,0>')
screen:expect([[
@@ -679,7 +679,7 @@ describe('ui/mouse/input', function()
|
{0:~ }|
{4:[No Name] [+] }|
- |
+ :vsp |
]])
feed('<ScrollWheelUp><27,7><ScrollWheelUp>')
screen:expect([[
@@ -696,7 +696,7 @@ describe('ui/mouse/input', function()
many |
lines |
{4:[No Name] [+] }|
- |
+ :vsp |
]])
end)