0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.0822: crash when dragging the statusline with a mapping

Problem:    Crash when dragging the statusline with a mapping.
Solution:   Check for valid window pointer. (issue #11427)
This commit is contained in:
Bram Moolenaar
2022-10-31 13:06:26 +00:00
parent 86e6717ace
commit 8ab9ca93ee
5 changed files with 44 additions and 10 deletions

View File

@@ -4249,6 +4249,7 @@ leave_tabpage(
{
tabpage_T *tp = curtab;
reset_mouse_got_click();
#ifdef FEAT_JOB_CHANNEL
leaving_window(curwin);
#endif
@@ -4464,6 +4465,7 @@ goto_tabpage_tp(
// Don't repeat a message in another tab page.
set_keep_msg(NULL, 0);
reset_mouse_got_click();
skip_win_fix_scroll = TRUE;
if (tp != curtab && leave_tabpage(tp->tp_curwin->w_buffer,
trigger_leave_autocmds) == OK)