1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 17:17:42 +00:00

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

View file

@ -736,6 +736,9 @@ void Editor::handle_read_event()
continue;
case '~':
if (param1 == 3) { // ^[[3~: delete
if (modifiers == CSIMod::Ctrl)
erase_alnum_word_forwards();
else
erase_character_forwards();
m_search_offset = 0;
continue;