diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-03-07 17:13:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-07 17:13:51 +0000 |
commit | 14113fdf9cb3d588c0d1c3a210246b981cf5aad3 (patch) | |
tree | a0f17ad3f6c5b31a0463e452122ba9e5aaa9705a /src/mbyte.c | |
parent | 663ee88a8260d69d9310e22f2bfdec49af6a102e (diff) |
patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected filev9.0.1390
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)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 57aa619990..5e6aed02bb 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; |