From ef9e6bece2d091dedd0ad7a51ec331327f02718a Mon Sep 17 00:00:00 2001 From: yory8 Date: Sun, 10 May 2020 22:16:53 +0200 Subject: [PATCH] fix(selector): revert 6a818c80c43be3511388ed601f36fd90554c8bd3 Breaks fzf, and doesn't seem to be needed anymore --- CHANGELOG.md | 8 +++++++- selector.go | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 617c007..7339b6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -# 1.5.1 +# Next + +**Notable bug fixes** + +- fzf couldn't recover the clipboard content in some cases + +# 1.5.1 **Notable bug fixes** diff --git a/selector.go b/selector.go index e985d1b..0b1e4f7 100644 --- a/selector.go +++ b/selector.go @@ -80,7 +80,7 @@ func selector(data []string, max int, tool, prompt, toolArgs string, null bool) sep = "\000" } - cmd := exec.Cmd{Path: bin, Args: args, Stdin: strings.NewReader(strings.Join(processed, sep) + "\n")} + cmd := exec.Cmd{Path: bin, Args: args, Stdin: strings.NewReader(strings.Join(processed, sep))} cmd.Stderr = os.Stderr // let stderr pass to console b, err := cmd.Output() if err != nil {