diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-08-13 20:22:35 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-08-13 20:22:35 +0200 |
commit | c45a9f6acb3d2799e131ff3dd87fdb49d438e630 (patch) | |
tree | 8ef4657888c76daa4bc95eead34db7b99c90b356 /src/cmd.c | |
parent | f8ffc1b1d7790cf56cb7f766104243186d990a3a (diff) |
ignore KEYCODE_NONE, refs #149
Diffstat (limited to 'src/cmd.c')
-rw-r--r-- | src/cmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -479,6 +479,11 @@ int cmd_process(struct commands *commands, struct cmd_ctx **ctxp, char key, if (!commands) return EINVAL; + if (key == KEYCODE_NONE) { + warning("cmd: process: illegal keycode NONE\n"); + return EINVAL; + } + /* are we in edit-mode? */ if (ctxp && *ctxp) { |