summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-10 01:40:56 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-18 17:08:36 +0900
commit83b603390683d49ff75b72d142b4dba4b5186d73 (patch)
tree103394f2ffab559d08528ed50a342f80c61d392b /main.go
parent01e7668915c4e3cf8c9eeca283d41beac924fe1f (diff)
downloadfzf-83b603390683d49ff75b72d142b4dba4b5186d73.tar.gz
Add --tmux option to replace fzf-tmux script
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7c76bef0..1e05345c 100644
--- a/main.go
+++ b/main.go
@@ -35,7 +35,7 @@ func printScript(label string, content []byte) {
}
func exit(code int, err error) {
- if err != nil {
+ if code == fzf.ExitError {
fmt.Fprintln(os.Stderr, err.Error())
}
os.Exit(code)