Skip to content

Commit

Permalink
(tui/readline) treat *0x7f as *0x08 (delete to backspace)
Browse files Browse the repository at this point in the history
FossilOrigin-Name: fa04e39803bb97975629f9f3a51aad04faf6b1feee37219cf9e745340ef62270
  • Loading branch information
void committed May 31, 2024
1 parent 1f9b22f commit 8e79e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shmif/tui/widgets/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,8 @@ static bool on_utf8_input(
}
}

/* backspace */
else if (*u8 == 0x08)
/* backspace / delete */
else if (*u8 == 0x08 || *u8 == 0x7f)
return erase_at_cursor(T, M);

/* first filter things out */
Expand Down

0 comments on commit 8e79e9d

Please sign in to comment.