From e1c54b8a0f6415aadcadc69d2118e359dc0577e5 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 13 Sep 2020 21:32:22 -0400 Subject: [PATCH] LibLine: Implement ctrl-del: It does the same thing as alt-d, delete-word --- Libraries/LibLine/Editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/LibLine/Editor.cpp b/Libraries/LibLine/Editor.cpp index fc80b41c7b7..a5955ba8e78 100644 --- a/Libraries/LibLine/Editor.cpp +++ b/Libraries/LibLine/Editor.cpp @@ -736,7 +736,10 @@ void Editor::handle_read_event() continue; case '~': if (param1 == 3) { // ^[[3~: delete - erase_character_forwards(); + if (modifiers == CSIMod::Ctrl) + erase_alnum_word_forwards(); + else + erase_character_forwards(); m_search_offset = 0; continue; }