From 6aba28ad3d098c7991d8698a3b11969d7e6ea526 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 17 Mar 2019 11:25:16 -0700 Subject: [PATCH] Add missing cases to readline loop Handle all readline commands in our switch. --- src/reader.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/reader.cpp b/src/reader.cpp index 8b663c2e7..769857847 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -3263,6 +3263,19 @@ maybe_t 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) {