diff options
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r-- | src/vim9execute.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c index 9bfec3af1..de29988be 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1422,11 +1422,8 @@ call_def_function( dict_T *dict = tv_dict->vval.v_dict; dictitem_T *di; - if (key == NULL || *key == NUL) - { - emsg(_(e_emptykey)); - goto on_error; - } + if (key == NULL) + key = (char_u *)""; tv = STACK_TV_BOT(-3); di = dict_find(dict, key, -1); if (di != NULL) |