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
windows-fixes
TorchedSammy 2022-01-26 15:18:54 -04:00
parent e0b84aaff7
commit 9cf03e37c4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 4 additions and 4 deletions

View File

@ -265,17 +265,17 @@ func handleSignals() {
for s := range c { for s := range c {
switch s { switch s {
case os.Interrupt: case os.Interrupt:
hooks.Em.Emit("signals.sigint") hooks.Em.Emit("signal.sigint")
if !running && interactive { if !running && interactive {
lr.ClearInput() lr.ClearInput()
} }
case syscall.SIGWINCH: case syscall.SIGWINCH:
hooks.Em.Emit("signals.resize") hooks.Em.Emit("signal.resize")
if !running && interactive { if !running && interactive {
lr.Resize() lr.Resize()
} }
case syscall.SIGUSR1: hooks.Em.Emit("signals.sigusr1") case syscall.SIGUSR1: hooks.Em.Emit("signal.sigusr1")
case syscall.SIGUSR2: hooks.Em.Emit("signals.sigusr2") case syscall.SIGUSR2: hooks.Em.Emit("signal.sigusr2")
} }
} }
} }