mirror of
https://github.com/neovim/neovim.git
synced 2026-01-21 04:31:51 +10:00
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)
2996773276
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user