Skip to content

Commit

Permalink
Merge pull request #19 from mcuadros/master
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
bobappleyard committed Jun 5, 2015
2 parents 80d8097 + 265bad3 commit a1f23ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions readline.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,13 @@ func handleSignals() {
C.rl_catch_sigwinch = 0

signals := make(chan os.Signal, 2)
signal.Notify(signals, syscall.SIGINT, syscall.SIGWINCH)
signal.Notify(signals, syscall.SIGWINCH, os.Kill, os.Interrupt)

for s := range signals {
switch s {
case syscall.SIGWINCH:
C.rl_resize_terminal()

case syscall.SIGINT:
default:
if CatchSigint {
Cleanup()
os.Exit(1)
Expand Down

0 comments on commit a1f23ef

Please sign in to comment.