fix(ui2): vim.on_key should return nil instead of false (#38668)

(cherry picked from commit a2d9863c27)
This commit is contained in:
phanium
2026-04-01 21:07:26 +08:00
committed by github-actions[bot]
parent 10bd554c0f
commit dee6d2ad97

View File

@@ -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.