Mercurial > vim
diff src/channel.c @ 19201:e7b4fff348dd v8.2.0159
patch 8.2.0159: non-materialized range() list causes problems
Commit: https://github.com/vim/vim/commit/50985eb1f0bd3c73ce727f9bbd66c839c92ef0da
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 27 22:09:39 2020 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Jan 2020 22:15:07 +0100 |
parents | 94eda51ba9ba |
children | d776967d0f0d |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -5123,6 +5123,7 @@ get_job_options(typval_T *tv, jobopt_T * return FAIL; } + range_list_materialize(item->vval.v_list); li = item->vval.v_list->lv_first; for (; li != NULL && n < 16; li = li->li_next, n++) { @@ -5529,6 +5530,7 @@ win32_build_cmd(list_T *l, garray_T *gap listitem_T *li; char_u *s; + range_list_materialize(l); for (li = l->lv_first; li != NULL; li = li->li_next) { s = tv_get_string_chk(&li->li_tv);