From 51baea993f2d77f5973d1c57f05557c6bbd71695 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 13 Jan 2025 14:13:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3win=E4=B8=8Bctrl-?= =?UTF-8?q?c=E6=B2=A1=E6=9C=89=E9=80=80=E5=87=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filecomplete.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filecomplete.cpp b/filecomplete.cpp index 43bc631..bc2be04 100644 --- a/filecomplete.cpp +++ b/filecomplete.cpp @@ -463,8 +463,9 @@ char* fc_readline() switch (ch) { case ENTER: return main_buf; -#if defined(OS_WINDWS) +#if defined(OS_WINDOWS) case CTRL_C: { + free(main_buf); exit(0); } #endif