From 2de04bfe43a61a118631f0f90843acdad8e8a752 Mon Sep 17 00:00:00 2001 From: Ray Hayes Date: Tue, 27 Sep 2016 12:31:14 -0700 Subject: [PATCH] Fix [DEL] handling same as backspace. [DEL] is 127 so is handled the same as a backspace. --- contrib/win32/win32compat/shell-host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/win32/win32compat/shell-host.c b/contrib/win32/win32compat/shell-host.c index 8c4d240..3c4b725 100644 --- a/contrib/win32/win32compat/shell-host.c +++ b/contrib/win32/win32compat/shell-host.c @@ -848,8 +848,9 @@ DWORD WINAPI ProcessPipes(LPVOID p) { { SendKeyStroke(child_in, VK_RETURN, buf[0]); } - else if (buf[i] == '\b') + else if (buf[i] == '\b' || buf[i] == 127) { + buf[0] = 8; SendKeyStroke(child_in, VK_BACK, buf[0]); } else if (buf[i] == '\t')