patch 9.0.1989: Vim9: double error message given
Commit:
https://github.com/vim/vim/commit/d615a3122a1347ee0d446be4ecb4295b1e0aaabf
Author: Ernie Rael <[email protected]>
Date: Thu Oct 5 20:28:16 2023 +0200
patch 9.0.1989: Vim9: double error message given
Problem: Vim9: double error message given
Solution: Only give second error message, if ther
wasn't one given before
closes: #13278
Signed-off-by: Christian Brabandt <[email protected]>
Co-authored-by: Ernie Rael <[email protected]>
diff --git a/src/version.c b/src/version.c
index 02dd9bfe4..64c68d99d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1989,
/**/
1988,
/**/
diff --git a/src/vim9class.c b/src/vim9class.c
index 925149e66..295716e18 100644
--- a/src/vim9class.c
+++ b/src/vim9class.c
@@ -2221,6 +2221,7 @@ class_object_index(
return FAIL;
size_t len = name_end - name;
+ int did_emsg_save = did_emsg;
class_T *cl;
if (rettv->v_type == VAR_CLASS)
cl = rettv->vval.v_class;
@@ -2310,7 +2311,8 @@ class_object_index(
return OK;
}
- member_not_found_msg(cl, VAR_OBJECT, name, len);
+ if (did_emsg == did_emsg_save)
+ member_not_found_msg(cl, VAR_OBJECT, name, len);
}
else if (rettv->v_type == VAR_CLASS)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qoT6z-009MLk-3D%40256bit.org.