Skip to content

Commit 6b9c46f

Browse files
committed
Update linenoise.hpp with current upstream version.
1 parent ce703d0 commit 6b9c46f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/linenoise/linenoise.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ inline void InterpretEscSeq(void)
777777
if (es_argv[0] == 21) // ESC[21t Report xterm window's title
778778
{
779779
WCHAR buf[MAX_PATH * 2];
780-
DWORD len = GetConsoleTitleW(buf + 3, lenof(buf) - 3 - 2);
780+
len = GetConsoleTitleW(buf + 3, lenof(buf) - 3 - 2);
781781
// Too bad if it's too big or fails.
782782
buf[0] = ESC;
783783
buf[1] = ']';
@@ -1025,7 +1025,7 @@ inline int win32read(int *c) {
10251025
*c = 8;
10261026
return 1;
10271027
case VK_DELETE:
1028-
*c = 127;
1028+
*c = 4; /* same as Ctrl+D above */
10291029
return 1;
10301030
default:
10311031
if (*c) return 1;

0 commit comments

Comments
 (0)