diff --git a/src/popupwin.c b/src/popupwin.c index efcc395981..3b808e2e3a 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -2599,7 +2599,7 @@ f_popup_locate(typval_T *argvars, typval_T *rettv) win_T *wp; wp = mouse_find_win(&row, &col, FIND_POPUP); - if (WIN_IS_POPUP(wp)) + if (wp != NULL && WIN_IS_POPUP(wp)) rettv->vval.v_number = wp->w_id; } diff --git a/src/version.c b/src/version.c index 903734998d..c327f98b4b 100644 --- a/src/version.c +++ b/src/version.c @@ -737,6 +737,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2334, /**/ 2333, /**/