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/popupmenu.c | |
parent | 3f169ce17e8b779d105c96138a8b4246f2d270b9 (diff) | |
download | vim-git-50985eb1f0bd3c73ce727f9bbd66c839c92ef0da.tar.gz |
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/popupmenu.c')
-rw-r--r-- | src/popupmenu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/popupmenu.c b/src/popupmenu.c index 0e4f9fef0..3a5e10324 100644 --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -1314,6 +1314,7 @@ ui_post_balloon(char_u *mesg, list_T *list) balloon_array = ALLOC_CLEAR_MULT(pumitem_T, list->lv_len); if (balloon_array == NULL) return; + range_list_materialize(list); for (idx = 0, li = list->lv_first; li != NULL; li = li->li_next, ++idx) { char_u *text = tv_get_string_chk(&li->li_tv); |