commit | 50985eb1f0bd3c73ce727f9bbd66c839c92ef0da | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jan 27 22:09:39 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jan 27 22:09:39 2020 +0100 |
tree | e7b8b997f064de0b6b9fb57ee031fa41ef175e56 | |
parent | 3f169ce17e8b779d105c96138a8b4246f2d270b9 [diff] [blame] |
patch 8.2.0159: non-materialized range() list causes problems Problem: Non-materialized range() list causes problems. (Fujiwara Takuya) Solution: Materialize the list where needed.
diff --git a/src/highlight.c b/src/highlight.c index 19aafff..19a9c50 100644 --- a/src/highlight.c +++ b/src/highlight.c
@@ -3739,6 +3739,7 @@ listitem_T *li; int i; + range_list_materialize(pos_list); for (i = 0, li = pos_list->lv_first; li != NULL && i < MAXPOSMATCH; i++, li = li->li_next) {