mirror of
https://github.com/neovim/neovim.git
synced 2026-04-02 05:39:26 +00:00
fix(ui2): vim.on_key should return nil instead of false (#38668)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user