From a2d9863c2773d69f41cc9aeba402e30fea474fdd Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Wed, 1 Apr 2026 21:07:26 +0800 Subject: [PATCH] fix(ui2): vim.on_key should return nil instead of false (#38668) --- runtime/lua/vim/_core/ui2/messages.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.