Problem: Rare crash for popup menu.
Solution: Check for NULL pointer. (Nobuhiro Takasaki, closes #6027)
pum_extra_width = 0;
for (i = 0; i < pum_size; ++i)
{
- w = vim_strsize(pum_array[i].pum_text);
- if (pum_base_width < w)
- pum_base_width = w;
+ if (pum_array[i].pum_text != NULL)
+ {
+ w = vim_strsize(pum_array[i].pum_text);
+ if (pum_base_width < w)
+ pum_base_width = w;
+ }
if (pum_array[i].pum_kind != NULL)
{
w = vim_strsize(pum_array[i].pum_kind) + 1;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 678,
/**/
677,
/**/