Add missing cases to readline loop

Handle all readline commands in our switch.
This commit is contained in:
ridiculousfish 2019-03-17 11:25:16 -07:00
parent 2c56e27d37
commit 6aba28ad3d

View File

@ -3263,6 +3263,19 @@ maybe_t<wcstring> reader_data_t::readline(int nchars) {
reader_repaint_needed();
break;
}
// Some commands should have been handled internally by input_readch().
case rl::R_SELF_INSERT: {
DIE("self-insert should have been handled by input_readch");
}
case rl::R_AND: {
DIE("self-insert should have been handled by input_readch");
}
case rl::R_VI_ARG_DIGIT:
case rl::R_VI_DELETE_TO: {
// TODO: what needs to happen with these?
break;
}
}
if (ordinary_char) {