diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-27 22:09:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-27 22:09:39 +0100 |
commit | 50985eb1f0bd3c73ce727f9bbd66c839c92ef0da (patch) | |
tree | e7b8b997f064de0b6b9fb57ee031fa41ef175e56 /src/highlight.c | |
parent | 3f169ce17e8b779d105c96138a8b4246f2d270b9 (diff) |
patch 8.2.0159: non-materialized range() list causes problemsv8.2.0159
Problem: Non-materialized range() list causes problems. (Fujiwara Takuya)
Solution: Materialize the list where needed.
Diffstat (limited to 'src/highlight.c')
-rw-r--r-- | src/highlight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/highlight.c b/src/highlight.c index 19aafffe5a..19a9c50a20 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -3739,6 +3739,7 @@ match_add( 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) { |