diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-01 20:21:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 20:21:48 +0800 |
commit | c46d46e9f11a9960fcf9c498ecc72be4c416cfa5 (patch) | |
tree | 914333828d1f082a3dcc12c00219c6117c7f4498 /src/nvim/eval.lua | |
parent | c3aba403c6091a56c517e60beb73d9873d4bb8af (diff) | |
download | rneovim-c46d46e9f11a9960fcf9c498ecc72be4c416cfa5.tar.gz rneovim-c46d46e9f11a9960fcf9c498ecc72be4c416cfa5.tar.bz2 rneovim-c46d46e9f11a9960fcf9c498ecc72be4c416cfa5.zip |
vim-patch:8.2.2343: Vim9: return type of readfile() is any (#20896)
Problem: Vim9: return type of readfile() is any.
Solution: Add readblob() so that readfile() can be expected to always
return a list of strings. (closes vim/vim#7671)
https://github.com/vim/vim/commit/c423ad77ed763c11ba67729bbf63c1cf0915231f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r-- | src/nvim/eval.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 264659af1f..ecb411a652 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -291,6 +291,7 @@ return { perleval={args=1, base=1}, rand={args={0, 1}, base=1}, range={args={1, 3}, base=1}, + readblob={args=1, base=1}, readdir={args={1, 2}, base=1}, readfile={args={1, 3}, base=1}, reduce={args={2, 3}, base=1}, |