Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vis-lua: fail when mapping a key to an invalid handler type
When passing an invalid handler type (i.e., any type that isn't a string, function, or KeyAction) to Vis:map/Window:map, the editor would map the key to an empty (zeroed) KeyBinding struct. vis_keys_process() doesn't take this into account, so the key is never consumed from the input queue, causing the editor to get stuck in an infinite loop.
- Loading branch information