summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-27 22:09:39 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-27 22:09:39 +0100
commit50985eb1f0bd3c73ce727f9bbd66c839c92ef0da (patch)
treee7b8b997f064de0b6b9fb57ee031fa41ef175e56 /src/insexpand.c
parent3f169ce17e8b779d105c96138a8b4246f2d270b9 (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/insexpand.c')
-rw-r--r--src/insexpand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index 0be20092ac..0b2435f4ce 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -2330,6 +2330,7 @@ ins_compl_add_list(list_T *list)
int dir = compl_direction;
// Go through the List with matches and add each of them.
+ range_list_materialize(list);
for (li = list->lv_first; li != NULL; li = li->li_next)
{
if (ins_compl_add_tv(&li->li_tv, dir) == OK)
@@ -2511,6 +2512,7 @@ get_complete_info(list_T *what_list, dict_T *retdict)
else
{
what_flag = 0;
+ range_list_materialize(what_list);
for (item = what_list->lv_first; item != NULL; item = item->li_next)
{
char_u *what = tv_get_string(&item->li_tv);