0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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)
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)
{
buf = buflist_findname_exp(avar->vval.v_string);