summaryrefslogtreecommitdiffstats
path: root/src/main.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/main.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/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fe3571b926..036ab0a1f7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1342,7 +1342,7 @@ main_loop(
validate_cursor();
if (!finish_op)
- may_trigger_winscrolled(curwin);
+ may_trigger_winscrolled();
// If nothing is pending and we are going to wait for the user to
// type a character, trigger SafeState.