diff src/blob.c @ 26394:43d196ca5e7a v8.2.3728

patch 8.2.3728: internal error when passing range() to list2blob() Commit: https://github.com/vim/vim/commit/04b7b4bf7fe57375bf3c4ed3fd087fc0bb0147ba Author: kuuote <znmxodq1@gmail.com> Date: Fri Dec 3 13:57:00 2021 +0000 patch 8.2.3728: internal error when passing range() to list2blob() Problem: Internal error when passing range() to list2blob(). Solution: Materialize the list first. (closes https://github.com/vim/vim/issues/9262)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 Dec 2021 15:00:05 +0100
parents 8d55e978f95b
children b18f3b0f317c
line wrap: on
line diff
--- a/src/blob.c
+++ b/src/blob.c
@@ -526,6 +526,7 @@ f_list2blob(typval_T *argvars, typval_T 
     if (l == NULL)
 	return;
 
+    CHECK_LIST_MATERIALIZE(l);
     FOR_ALL_LIST_ITEMS(l, li)
     {
 	int		error;