aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorphanium <91544758+phanen@users.noreply.github.com>2026-04-01 21:07:26 +0800
committerGitHub <noreply@github.com>2026-04-01 15:07:26 +0200
commita2d9863c2773d69f41cc9aeba402e30fea474fdd (patch)
treea9cbf0eb730b39d1d6e6209a36c5a620ece0b2b6 /runtime/lua/vim
parenta0fcf32ad58b9a3e8bcdf374a88a8523b3fd556b (diff)
downloadrneovim-a2d9863c2773d69f41cc9aeba402e30fea474fdd.tar.gz
rneovim-a2d9863c2773d69f41cc9aeba402e30fea474fdd.tar.bz2
rneovim-a2d9863c2773d69f41cc9aeba402e30fea474fdd.zip
fix(ui2): vim.on_key should return nil instead of false (#38668)
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/_core/ui2/messages.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_core/ui2/messages.lua b/runtime/lua/vim/_core/ui2/messages.lua
index 9fc01aaa42..fc80e25fc7 100644
--- a/runtime/lua/vim/_core/ui2/messages.lua
+++ b/runtime/lua/vim/_core/ui2/messages.lua
@@ -536,7 +536,7 @@ local cmd_on_key = function(key, typed)
api.nvim__redraw({ flush = true })
typed_g, M.cmd_on_key, M.cmd.ids = false, nil, {}
- return entered and ''
+ return entered and '' or nil
end
--- Add virtual [+x] text to indicate scrolling is possible.