0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.2051: Vim9: wrong error for non-existing object var

Problem:  Vim9: wrong error for non-existing object var
Solution: mention object or class depending on whether
          the var is an object or class variable.

closes: #13384
closes: #13387

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
Yegappan Lakshmanan
2023-10-19 17:18:28 +02:00
committed by Christian Brabandt
parent e08bfef88b
commit 00b55370b3
3 changed files with 13 additions and 4 deletions

View File

@@ -2340,7 +2340,8 @@ class_object_index(
}
if (did_emsg == did_emsg_save)
member_not_found_msg(cl, is_object, name, len);
member_not_found_msg(cl, is_object ? VAR_OBJECT : VAR_CLASS, name,
len);
}
return FAIL;