From 2c185a18cdc7c77aa67e44ba854f8ddd9b3f2de9 Mon Sep 17 00:00:00 2001 From: Sean Dewar Date: Mon, 1 Nov 2021 18:12:08 +0000 Subject: vim-patch:8.2.1168: wrong method argument for appendbufline() Problem: Wrong method argument for appendbufline(). Solution: Use FEARG_3. https://github.com/vim/vim/commit/92053ce59ecf93838f4d6e3019eef1bc47be4184 Cherry-pick base change for append (and appendbufline) from v8.2.1167. These changes have no visible impact, but helps us sync with Vim. Like Vim, BASE_LAST is now unused after this commit. Keep it anyway in case it sees use in the future. Comment-out LAST definition in eval.lua to appease linter. --- src/nvim/eval.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index add1445f45..bbbe84f2a2 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -17,7 +17,7 @@ end -- Usable with the base key: use the last function argument as the method base. -- Value is from funcs.h file. "BASE_" prefix is omitted. -local LAST = "BASE_LAST" +-- local LAST = "BASE_LAST" (currently unused after port of v8.2.1168) return { funcs={ @@ -26,8 +26,8 @@ return { add={args=2, base=1}, ['and']={args=2, base=1}, api_info={}, - append={args=2, base=LAST}, - appendbufline={args=3, base=LAST}, + append={args=2, base=2}, + appendbufline={args=3, base=3}, argc={args={0, 1}}, argidx={}, arglistid={args={0, 2}}, -- cgit