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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user