summaryrefslogtreecommitdiff
path: root/src/evalbuffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-27 19:09:02 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-27 19:09:02 +0100
commit7b45d46cf7db0d2d7a4defc2d81b233a2c672b74 (patch)
tree39a1a8252b3dd0e4b298e134a70d5dc3abcb17d9 /src/evalbuffer.c
parent32105ae88f3aa6a6af30336f0bc9f8eb81292cd7 (diff)
downloadvim-git-7b45d46cf7db0d2d7a4defc2d81b233a2c672b74.tar.gz
patch 8.2.2665: test failuresv8.2.2665
Problem: Test failures. Solution: Check more specific feature. Add missing change.
Diffstat (limited to 'src/evalbuffer.c')
-rw-r--r--src/evalbuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evalbuffer.c b/src/evalbuffer.c
index b7aac9a6b..8a6c52d70 100644
--- a/src/evalbuffer.c
+++ b/src/evalbuffer.c
@@ -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);