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

This commit is contained in:
phanium
2026-04-01 21:07:26 +08:00
committed by GitHub
parent a0fcf32ad5
commit a2d9863c27

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.