mirror of
https://github.com/neovim/neovim.git
synced 2026-04-14 03:26:10 +00:00
fix(ui2): vim.on_key should return nil instead of false (#38668)
(cherry picked from commit a2d9863c27)
This commit is contained in:
committed by
github-actions[bot]
parent
10bd554c0f
commit
dee6d2ad97
@@ -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