aboutsummaryrefslogtreecommitdiff
path: root/test/functional/autocmd/winscrolled_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-20 21:11:57 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-20 21:24:22 +0800
commit91c192922da0240be5a8eb4045dae6cd968957e9 (patch)
treeca51e8d98038943518b8baeb1434209ce62d46f7 /test/functional/autocmd/winscrolled_spec.lua
parent035d41ac5e5fcbb49eb64b72a924c4d6f89f0579 (diff)
downloadrneovim-91c192922da0240be5a8eb4045dae6cd968957e9.tar.gz
rneovim-91c192922da0240be5a8eb4045dae6cd968957e9.tar.bz2
rneovim-91c192922da0240be5a8eb4045dae6cd968957e9.zip
vim-patch:9.0.0915: WinScrolled may trigger immediately when defined
Problem: WinScrolled may trigger immediately when defined. Solution: Initialize the fields in all windows. (closes vim/vim#11582) https://github.com/vim/vim/commit/29967732761d1ffb5592db5f5aa7036f5b52abf1 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional/autocmd/winscrolled_spec.lua')
-rw-r--r--test/functional/autocmd/winscrolled_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/autocmd/winscrolled_spec.lua b/test/functional/autocmd/winscrolled_spec.lua
index 6db2d53bbf..cd9c6dd168 100644
--- a/test/functional/autocmd/winscrolled_spec.lua
+++ b/test/functional/autocmd/winscrolled_spec.lua
@@ -104,6 +104,7 @@ describe('WinScrolled', function()
let g:scrolled = 0
au WinScrolled * let g:scrolled += 1
]])
+ eq(0, eval('g:scrolled'))
-- With the upper split focused, send a scroll-down event to the unfocused one.
meths.input_mouse('wheel', 'down', '', 0, 6, 0)