LibLine: Implement ctrl-del: It does the same thing as alt-d, delete-word

This commit is contained in:
Nico Weber 2020-09-13 21:32:22 -04:00 committed by Andreas Kling
parent 5198eb7c1c
commit e1c54b8a0f
Notes: sideshowbarker 2024-07-19 02:38:40 +09:00

View File

@ -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;
}