From 9cf03e37c4c5199e5de760497bba25367a10f65f Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 26 Jan 2022 15:18:54 -0400 Subject: [PATCH] fix: change hooks from signals to signal drop the s, dont remember when i added it it makes more sense and its what the docs have anyway --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 548b85c..2115668 100644 --- a/main.go +++ b/main.go @@ -265,17 +265,17 @@ func handleSignals() { for s := range c { switch s { case os.Interrupt: - hooks.Em.Emit("signals.sigint") + hooks.Em.Emit("signal.sigint") if !running && interactive { lr.ClearInput() } case syscall.SIGWINCH: - hooks.Em.Emit("signals.resize") + hooks.Em.Emit("signal.resize") if !running && interactive { lr.Resize() } - case syscall.SIGUSR1: hooks.Em.Emit("signals.sigusr1") - case syscall.SIGUSR2: hooks.Em.Emit("signals.sigusr2") + case syscall.SIGUSR1: hooks.Em.Emit("signal.sigusr1") + case syscall.SIGUSR2: hooks.Em.Emit("signal.sigusr2") } } }