aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-06-07 20:21:21 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-07-29 21:51:39 -0400
commit3865b4320591d35b6a87671f6864ee72c85a0e05 (patch)
tree1dc14f6f8bc7bbdb7e5efd9f8164ce2070d6cc5b /src/nvim/eval.lua
parentd628e4250fc5f7dfc3fe1bd537ce38b6171c138c (diff)
downloadrneovim-3865b4320591d35b6a87671f6864ee72c85a0e05.tar.gz
rneovim-3865b4320591d35b6a87671f6864ee72c85a0e05.tar.bz2
rneovim-3865b4320591d35b6a87671f6864ee72c85a0e05.zip
vim-patch:8.2.2957: using getchar() in Vim9 script is problematic
Problem: Using getchar() in Vim9 script is problematic. Solution: Add getcharstr(). (closes vim/vim#8343) https://github.com/vim/vim/commit/3a7503c34c65ed15cc08deb5b54aaf2ea51525b4 Cherry-pick Test_getchar() changes from patch v8.1.2304 to sync with upstream. Port f_getcharstr() to src/nvim/eval/funcs.c, not src/nvim/getchar.c. Patch v8.1.2042 is not ported yet.
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 33c6fae5cf..eb20cd1bc8 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -136,6 +136,7 @@ return {
getchar={args={0, 1}},
getcharmod={},
getcharsearch={},
+ getcharstr={args={0, 1}},
getcmdline={},
getcmdpos={},
getcmdtype={},