summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-12 11:32:48 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-12 11:32:48 +0100
commitd58862d18f091d3c14fa3647e724ef7eea1ecefa (patch)
tree0f40cd55732b3a0f0f14ae4e935e5ed93b83b9d8 /src/edit.c
parent11a57dfd16a47f248fe949344bd5db3f12b9bd32 (diff)
patch 8.2.4739: accessing freed memory after WinScrolled autocmd eventv8.2.4739
Problem: Accessing freed memory after WinScrolled autocmd event. Solution: Check the window pointer is still valid. (closes #10156) Remove the argument from may_trigger_winscrolled().
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index fad2a7b1a4..c28c1f98a3 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1528,7 +1528,7 @@ ins_redraw(int ready) // not busy with something
}
if (ready)
- may_trigger_winscrolled(curwin);
+ may_trigger_winscrolled();
// Trigger SafeState if nothing is pending.
may_trigger_safestate(ready