Log error properly when no current state, and some other minor tweaks.

This commit is contained in:
nicm
2017-04-21 22:23:24 +00:00
parent 194a121ef6
commit c8ecbf38ab
3 changed files with 5 additions and 9 deletions

View File

@ -950,9 +950,6 @@ retry:
if (KEYC_IS_MOUSE(key) && m->valid && wp != NULL) {
cmd_find_from_winlink_pane(&fs, s->curw, wp);
cmd_find_log_state(__func__, &fs);
if (!cmd_find_valid_state(&fs))
fatalx("invalid key state");
key_bindings_dispatch(bd, c, m, &fs);
} else
key_bindings_dispatch(bd, c, m, NULL);