mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:48:14 +00:00
LibLine: Implement ctrl-del: It does the same thing as alt-d, delete-word
This commit is contained in:
parent
5198eb7c1c
commit
e1c54b8a0f
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue