diff --git a/contrib/win32/win32compat/shell-host.c b/contrib/win32/win32compat/shell-host.c index 5d5b0acd9..31f1619e0 100644 --- a/contrib/win32/win32compat/shell-host.c +++ b/contrib/win32/win32compat/shell-host.c @@ -1589,7 +1589,7 @@ start_withno_pty(wchar_t *command) } /* for backspace, we need to send space and another backspace for visual erase */ - if (buf[i] == '\b') { + if (buf[i] == '\b' || buf[i] == '\x7f') { if (in_cmd_len > 0) { GOTO_CLEANUP_ON_FALSE(WriteFile(pipe_out, "\b \b", 3, &wr, NULL)); in_cmd_len--;