comparison src/gui.c @ 28429:aa9720c76412 v8.2.4739

patch 8.2.4739: accessing freed memory after WinScrolled autocmd event Commit: https://github.com/vim/vim/commit/d58862d18f091d3c14fa3647e724ef7eea1ecefa Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Apr 12 11:32:48 2022 +0100 patch 8.2.4739: accessing freed memory after WinScrolled autocmd event Problem: Accessing freed memory after WinScrolled autocmd event. Solution: Check the window pointer is still valid. (closes https://github.com/vim/vim/issues/10156) Remove the argument from may_trigger_winscrolled().
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Apr 2022 12:45:04 +0200
parents e466fdbe0699
children 4dcccb2673fe
comparison
equal deleted inserted replaced
28428:eb08141a60cb 28429:aa9720c76412
5236 # endif 5236 # endif
5237 last_cursormoved = curwin->w_cursor; 5237 last_cursormoved = curwin->w_cursor;
5238 } 5238 }
5239 5239
5240 if (!finish_op) 5240 if (!finish_op)
5241 may_trigger_winscrolled(curwin); 5241 may_trigger_winscrolled();
5242 5242
5243 # ifdef FEAT_CONCEAL 5243 # ifdef FEAT_CONCEAL
5244 if (conceal_update_lines 5244 if (conceal_update_lines
5245 && (conceal_old_cursor_line != conceal_new_cursor_line 5245 && (conceal_old_cursor_line != conceal_new_cursor_line
5246 || conceal_cursor_line(curwin) 5246 || conceal_cursor_line(curwin)