Mercurial > vim
changeset 31647:094f4c67e9c9 v9.0.1156
patch 9.0.1156: tests fail because of a different error message
Commit: https://github.com/vim/vim/commit/0cb3ca9f7a1b027973239bbea3d1a20dd1676a9c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 7 13:07:11 2023 +0000
patch 9.0.1156: tests fail because of a different error message
Problem: Tests fail because of a different error message.
Solution: Don't give an error if a type name can't be found.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 Jan 2023 14:15:02 +0100 |
parents | 8ed39044a750 |
children | 0dbf2cc7b334 |
files | src/version.c src/vim9type.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1156, +/**/ 1155, /**/ 1154,
--- a/src/vim9type.c +++ b/src/vim9type.c @@ -1275,8 +1275,7 @@ parse_type(char_u **arg, garray_T *type_ // It can be a class or interface name. typval_T tv; tv.v_type = VAR_UNKNOWN; - if (eval_variable(*arg, len, 0, &tv, NULL, - EVAL_VAR_VERBOSE + EVAL_VAR_IMPORT) == OK) + if (eval_variable(*arg, len, 0, &tv, NULL, EVAL_VAR_IMPORT) == OK) { if (tv.v_type == VAR_CLASS && tv.vval.v_class != NULL) {