diff options
-rw-r--r-- | src/mbyte.c | 13 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 4f6c8502af..6d7137ed55 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -5756,11 +5756,14 @@ f_getcellwidths(typval_T *argvars UNUSED, typval_T *rettv) list_T *entry = list_alloc(); if (entry == NULL) break; - list_append_number(entry, (varnumber_T)cw_table[i].first); - list_append_number(entry, (varnumber_T)cw_table[i].last); - list_append_number(entry, (varnumber_T)cw_table[i].width); - - list_append_list(rettv->vval.v_list, entry); + if (list_append_number(entry, (varnumber_T)cw_table[i].first) == FAIL + || list_append_number(entry, (varnumber_T)cw_table[i].last) == FAIL + || list_append_number(entry, (varnumber_T)cw_table[i].width) == FAIL + || list_append_list(rettv->vval.v_list, entry) == FAIL) + { + list_free(entry); + break; + } } } diff --git a/src/version.c b/src/version.c index 5565ccbe97..d63abc3490 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1216, +/**/ 1215, /**/ 1214, |