diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-08-22 18:26:35 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2021-09-09 06:09:33 -0700 |
commit | 69fe427df408bc404b17d13759b2e925819c8cf7 (patch) | |
tree | 44129cb1c2b3ae27588c42452c647ec634b4877b /src/nvim/getchar.c | |
parent | 4eb1ebbcf703d0b7fe7dcb8d75001878a50fc137 (diff) | |
download | rneovim-69fe427df408bc404b17d13759b2e925819c8cf7.tar.gz rneovim-69fe427df408bc404b17d13759b2e925819c8cf7.tar.bz2 rneovim-69fe427df408bc404b17d13759b2e925819c8cf7.zip |
feat(lua)!: register_keystroke_callback => on_key
Analogous to nodejs's `on('data', …)` interface, here on_key is the "add
listener" interface.
ref 3ccdbc570d85 #12536
BREAKING_CHANGE: vim.register_keystroke_callback() is now an error.
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 28f58e2c34..11e3b9bc2d 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1563,8 +1563,8 @@ int vgetc(void) */ may_garbage_collect = false; - // Exec lua callbacks for on_keystroke - nlua_execute_log_keystroke(c); + // Execute Lua on_key callbacks. + nlua_execute_on_key(c); return c; } |