Skip to content

Commit 2de04bf

Browse files
authored
Fix [DEL] handling same as backspace.
[DEL] is 127 so is handled the same as a backspace.
1 parent 3c07c0c commit 2de04bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/win32/win32compat/shell-host.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,9 @@ DWORD WINAPI ProcessPipes(LPVOID p) {
848848
{
849849
SendKeyStroke(child_in, VK_RETURN, buf[0]);
850850
}
851-
else if (buf[i] == '\b')
851+
else if (buf[i] == '\b' || buf[i] == 127)
852852
{
853+
buf[0] = 8;
853854
SendKeyStroke(child_in, VK_BACK, buf[0]);
854855
}
855856
else if (buf[i] == '\t')

0 commit comments

Comments
 (0)