aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-29 18:37:07 +0800
committerGitHub <noreply@github.com>2024-03-29 18:37:07 +0800
commitf29c41d665fde8e03848db12093219466deceda2 (patch)
treee7b8c7f926e6f3097bd3992fbae507ddf3c0eb46 /src/nvim/lua/executor.c
parentfc19ee01acc30bac371f5a56a97a5cdfe8094014 (diff)
downloadrneovim-f29c41d665fde8e03848db12093219466deceda2.tar.gz
rneovim-f29c41d665fde8e03848db12093219466deceda2.tar.bz2
rneovim-f29c41d665fde8e03848db12093219466deceda2.zip
test: add a bit more testing for vim.on_key() (#28095)
Also: - Don't use NUMBUFLEN as buffer length as its unrelated. - Restore accidentally removed comment from last commit.
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index d5d35c5295..9e4b698b69 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -2066,7 +2066,7 @@ char *nlua_register_table_as_callable(const typval_T *const arg)
void nlua_execute_on_key(int c)
{
- char buf[NUMBUFLEN];
+ char buf[MB_MAXBYTES * 3 + 4];
size_t buf_len = special_to_buf(c, mod_mask, false, buf);
lua_State *const lstate = global_lstate;