From 5dd737e9919fcf16111a077324dfe37010eff2fe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 May 2024 08:36:21 +0530 Subject: [PATCH] ... --- tools/tui/run.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tui/run.go b/tools/tui/run.go index f40914394..ec278acb3 100644 --- a/tools/tui/run.go +++ b/tools/tui/run.go @@ -222,6 +222,8 @@ func RunCommandRestoringTerminalToSaneStateAfter(cmd []string) { fmt.Fprintln(os.Stderr, cmd[0], "failed to start with error:", err) return } + // Ignore SIGINT as the kernel tends to send it to us as well as the + // subprocess on Ctrl+C signal.Ignore(os.Interrupt) defer signal.Reset(os.Interrupt) err = c.Wait()