summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2022-04-08 15:18:45 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-08 15:18:45 +0100
commit0937182d49fa8db50cec42785f22f1031760a0bd (patch)
treea41ab36fcbeb5b2f0bc91ce36b2d056af2ec2491 /src/edit.c
parent18ee0f603ebd3c091f6d2ab88e652fda32821048 (diff)
patch 8.2.4713: plugins cannot track text scrollingv8.2.4713
Problem: Plugins cannot track text scrolling. Solution: Add the WinScrolled event. (closes #10102)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index f30edd5c79..1585f85184 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1527,6 +1527,9 @@ ins_redraw(int ready) // not busy with something
(linenr_T)(curwin->w_cursor.lnum + 1));
}
+ if (ready)
+ may_trigger_winscrolled(curwin);
+
// Trigger SafeState if nothing is pending.
may_trigger_safestate(ready
&& !ins_compl_active()