summaryrefslogtreecommitdiff
path: root/src/gui.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/gui.c
parent11a57dfd16a47f248fe949344bd5db3f12b9bd32 (diff)
downloadvim-git-d58862d18f091d3c14fa3647e724ef7eea1ecefa.tar.gz
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/gui.c')
-rw-r--r--src/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index 23694d195..f2f541e79 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -5238,7 +5238,7 @@ gui_update_screen(void)
}
if (!finish_op)
- may_trigger_winscrolled(curwin);
+ may_trigger_winscrolled();
# ifdef FEAT_CONCEAL
if (conceal_update_lines