mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
vim-patch:8.2.4713: plugins cannot track text scrolling
Problem: Plugins cannot track text scrolling.
Solution: Add the WinScrolled event. (closes vim/vim#10102)
0937182d49
Skip User event in autocmd.txt, not needed unless #10689 is reverted.
This commit is contained in:
@@ -1543,10 +1543,9 @@ static void ins_redraw(bool ready)
|
||||
}
|
||||
}
|
||||
|
||||
// Trigger Scroll if viewport changed.
|
||||
if (ready && has_event(EVENT_WINSCROLLED)
|
||||
&& win_did_scroll(curwin)) {
|
||||
do_autocmd_winscrolled(curwin);
|
||||
if (ready) {
|
||||
// Trigger Scroll if viewport changed.
|
||||
may_trigger_winscrolled(curwin);
|
||||
}
|
||||
|
||||
// Trigger BufModified if b_changed_invalid is set.
|
||||
|
Reference in New Issue
Block a user