From: Bram Moolenaar Date: Thu, 9 Dec 2021 17:44:01 +0000 (+0000) Subject: patch 8.2.3767: crash when using NULL partial X-Git-Tag: v8.2.3767 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8a92b6166e32f8e583e01c9f541cf81cf76f8e6;p=vim patch 8.2.3767: crash when using NULL partial Problem: Crash when using NULL partial. Solution: Check for NULL. --- diff --git a/src/eval.c b/src/eval.c index 1e2e4c476..821d0c1dc 100644 --- a/src/eval.c +++ b/src/eval.c @@ -5007,7 +5007,7 @@ echo_string_core( if (fname != NULL) { // When using uf_name prepend "g:" for a global function. - if (pt->pt_name == NULL && fname[0] == '\'' + if (pt != NULL && pt->pt_name == NULL && fname[0] == '\'' && vim_isupper(fname[1])) { ga_concat(&ga, (char_u *)"'g:"); diff --git a/src/version.c b/src/version.c index 0199acade..c3e34e4a9 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3767, /**/ 3766, /**/