From 07b1e6b72e62f65be7a1f19d850ab50fdbf59bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 28 Feb 2023 22:50:23 +0800 Subject: [PATCH] fix RestoreInputMode --- global/terminal/quick_edit_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global/terminal/quick_edit_windows.go b/global/terminal/quick_edit_windows.go index dbcd9ff..6e6bd95 100644 --- a/global/terminal/quick_edit_windows.go +++ b/global/terminal/quick_edit_windows.go @@ -14,7 +14,7 @@ func RestoreInputMode() error { return nil } stdin := windows.Handle(os.Stdin.Fd()) - return windows.SetConsoleMode(stdin, mode) + return windows.SetConsoleMode(stdin, inputmode) } // DisableQuickEdit 禁用快速编辑