Skip to content

Commit 7b45d46

Browse files
committed
patch 8.2.2665: test failures
Problem: Test failures. Solution: Check more specific feature. Add missing change.
1 parent 32105ae commit 7b45d46

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/evalbuffer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ find_buffer(typval_T *avar)
8888

8989
if (avar->v_type == VAR_NUMBER)
9090
buf = buflist_findnr((int)avar->vval.v_number);
91+
else if (in_vim9script() && check_for_string_arg(avar, 0) == FAIL)
92+
return NULL;
9193
else if (avar->v_type == VAR_STRING && avar->vval.v_string != NULL)
9294
{
9395
buf = buflist_findname_exp(avar->vval.v_string);

src/testdir/test_vim9_builtin.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def Test_balloon_show()
133133
enddef
134134

135135
def Test_balloon_split()
136-
CheckFeature balloon_eval
136+
CheckFeature balloon_eval_term
137137

138138
assert_fails('balloon_split(true)', 'E1174:')
139139
enddef

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2665,
753755
/**/
754756
2664,
755757
/**/

0 commit comments

Comments
 (0)