diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-11-01 18:12:08 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-11-26 18:53:11 +0000 |
commit | 2c185a18cdc7c77aa67e44ba854f8ddd9b3f2de9 (patch) | |
tree | 4d3e67b9e96d78164557f33f9582f3086c6a896a /src/nvim/eval.lua | |
parent | 6bc9af43ceaf10992982369c74ac073072562068 (diff) | |
download | rneovim-2c185a18cdc7c77aa67e44ba854f8ddd9b3f2de9.tar.gz rneovim-2c185a18cdc7c77aa67e44ba854f8ddd9b3f2de9.tar.bz2 rneovim-2c185a18cdc7c77aa67e44ba854f8ddd9b3f2de9.zip |
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.
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r-- | src/nvim/eval.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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}}, |