From 14113fdf9cb3d588c0d1c3a210246b981cf5aad3 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Tue, 7 Mar 2023 17:13:51 +0000 Subject: patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected file Problem: FOR_ALL_ macros are defined in an unexpected file. Solution: Move FOR_ALL_ macros to macros.h. Add FOR_ALL_HASHTAB_ITEMS. (Yegappan Lakshmanan, closes #12109) --- src/mbyte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mbyte.c') diff --git a/src/mbyte.c b/src/mbyte.c index 57aa61999..5e6aed02b 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -1579,7 +1579,7 @@ utf_char2cells(int c) // values of them. // // Note that these symbols are of varying widths, as they are symbols - // representing differents things ranging from a simple gear icon to an + // representing different things ranging from a simple gear icon to an // airplane. Some of them are in fact wider than double-width, but Vim // doesn't support non-fixed-width font, and tagging them as // double-width is the best way to handle them. @@ -5647,7 +5647,7 @@ f_setcellwidths(typval_T *argvars, typval_T *rettv UNUSED) // Check that all entries are a list with three numbers, the range is // valid and the cell width is valid. item = 0; - for (li = l->lv_first; li != NULL; li = li->li_next) + FOR_ALL_LIST_ITEMS(l, li) { listitem_T *lili; varnumber_T n1; -- cgit v1.2.1