summaryrefslogtreecommitdiffstats
path: root/src/dict.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-11 21:19:34 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-11 21:19:34 +0100
commitf785aa1354208f6b644e891aa01f8f86d947af7e (patch)
treeaa9ed2fee106094256c479215ab91ec129d3d763 /src/dict.c
parent0bcadf14aa700c166c09f1800ed3de00b9598b39 (diff)
patch 8.2.2501: not always clear where an error is reportedv8.2.2501
Problem: Not always clear where an error is reported. Solution: Add the where_T structure and pass it around. (closes #7796)
Diffstat (limited to 'src/dict.c')
-rw-r--r--src/dict.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dict.c b/src/dict.c
index b36b2bf6dd..922da473ce 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -1089,7 +1089,8 @@ dict_extend(dict_T *d1, dict_T *d2, char_u *action)
}
if (type != NULL
- && check_typval_type(type, &HI2DI(hi2)->di_tv, 0) == FAIL)
+ && check_typval_arg_type(type, &HI2DI(hi2)->di_tv, 0)
+ == FAIL)
break;
if (di1 == NULL)