aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-02-20 22:53:38 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-02-20 23:39:17 -0500
commit7ed4837298414488e238763953d40a4c7f2d7976 (patch)
treef94142cf8e46ebb37c430967e8fe09e3098dd91c /src/nvim/eval.lua
parent13b6f7a80676a0b43325f39dcaebbb2e7adf81c9 (diff)
downloadrneovim-7ed4837298414488e238763953d40a4c7f2d7976.tar.gz
rneovim-7ed4837298414488e238763953d40a4c7f2d7976.tar.bz2
rneovim-7ed4837298414488e238763953d40a4c7f2d7976.zip
vim-patch:8.1.1122: char2nr() does not handle composing characters
Problem: char2nr() does not handle composing characters. Solution: Add str2list() and list2str(). (Ozaki Kiichi, closes vim/vim#4190) https://github.com/vim/vim/commit/9d40128afd7fcd038ff6532722b55b1a8c189ce8 'utf8' optional param is noop unlike Vim.
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 17d9cc56aa..4654f8cef6 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -214,6 +214,7 @@ return {
line={args=1},
line2byte={args=1},
lispindent={args=1},
+ list2str={args={1, 2}},
localtime={},
log={args=1, func="float_op_wrapper", data="&log"},
log10={args=1, func="float_op_wrapper", data="&log10"},
@@ -321,6 +322,7 @@ return {
sqrt={args=1, func="float_op_wrapper", data="&sqrt"},
stdpath={args=1},
str2float={args=1},
+ str2list={args={1, 2}},
str2nr={args={1, 2}},
strcharpart={args={2, 3}},
strchars={args={1,2}},