0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2665: test failures

Problem:    Test failures.
Solution:   Check more specific feature.  Add missing change.
This commit is contained in:
Bram Moolenaar
2021-03-27 19:09:02 +01:00
parent 32105ae88f
commit 7b45d46cf7
3 changed files with 5 additions and 1 deletions

View File

@@ -88,6 +88,8 @@ find_buffer(typval_T *avar)
if (avar->v_type == VAR_NUMBER) if (avar->v_type == VAR_NUMBER)
buf = buflist_findnr((int)avar->vval.v_number); buf = buflist_findnr((int)avar->vval.v_number);
else if (in_vim9script() && check_for_string_arg(avar, 0) == FAIL)
return NULL;
else if (avar->v_type == VAR_STRING && avar->vval.v_string != NULL) else if (avar->v_type == VAR_STRING && avar->vval.v_string != NULL)
{ {
buf = buflist_findname_exp(avar->vval.v_string); buf = buflist_findname_exp(avar->vval.v_string);

View File

@@ -133,7 +133,7 @@ def Test_balloon_show()
enddef enddef
def Test_balloon_split() def Test_balloon_split()
CheckFeature balloon_eval CheckFeature balloon_eval_term
assert_fails('balloon_split(true)', 'E1174:') assert_fails('balloon_split(true)', 'E1174:')
enddef enddef

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2665,
/**/ /**/
2664, 2664,
/**/ /**/