terminal: fix: add delete key to backspace behavior

This commit is contained in:
dr-frmr 2024-06-04 11:01:40 -06:00
parent 553ad00d51
commit c8f2de8351
No known key found for this signature in database

View File

@ -521,7 +521,7 @@ pub async fn terminal(
cursor::MoveTo(cursor_col, win_rows),
)?;
},
KeyCode::Backspace => {
KeyCode::Backspace | KeyCode::Delete => {
if line_col == prompt_len {
continue;
}