fix(selector): add missing newline at the end of input
This commit is contained in:
parent
8413565637
commit
6a818c80c4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
# Next
|
||||
|
||||
**Notable bug fixes**
|
||||
|
||||
- when using bemenu, the selector didn't work for the oldest element in history
|
||||
|
||||
# 1.4.0
|
||||
|
||||
**New features**
|
||||
|
|
|
@ -58,7 +58,7 @@ func selector(data []string, max int, tool string, prompt string, toolArgs strin
|
|||
|
||||
processed, guide := preprocessData(data, true, false)
|
||||
|
||||
cmd := exec.Cmd{Path: bin, Args: args, Stdin: strings.NewReader(strings.Join(processed, "\n"))}
|
||||
cmd := exec.Cmd{Path: bin, Args: args, Stdin: strings.NewReader(strings.Join(processed, "\n") + "\n")}
|
||||
cmd.Stderr = os.Stderr // let stderr pass to console
|
||||
b, err := cmd.Output()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue