From ca19762e58533c6d7c7b25d7fcc41dc7ea898b3e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 18 Sep 2015 10:25:07 +0900 Subject: Exit status 130 when fzf is terminated by the user Related: #345 --- src/constants.go | 7 ++++--- src/terminal.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/constants.go b/src/constants.go index 9a4fc29f..1cc4f81f 100644 --- a/src/constants.go +++ b/src/constants.go @@ -49,7 +49,8 @@ const ( ) const ( - exitOk = 0 - exitNoMatch = 1 - exitError = 2 + exitOk = 0 + exitNoMatch = 1 + exitError = 2 + exitInterrupt = 130 ) diff --git a/src/terminal.go b/src/terminal.go index 5e8300f9..9a92ba43 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -791,7 +791,7 @@ func (t *Terminal) Loop() { exit(exitNoMatch) case reqQuit: C.Close() - exit(exitError) + exit(exitInterrupt) } } t.placeCursor() -- cgit v1.2.3