mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-17 13:33:49 -07:00
Only trim CR and NF from the submitted expression
So the trailing space in the following case is respected. curl -XPOST localhost:6266 -d "change-prompt:$(date)> "
This commit is contained in:
@@ -97,7 +97,7 @@ func handleHttpRequest(conn net.Conn, channel chan []*action) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
errorMessage := ""
|
errorMessage := ""
|
||||||
actions := parseSingleActionList(strings.TrimSpace(string(body)), func(message string) {
|
actions := parseSingleActionList(strings.Trim(string(body), "\r\n"), func(message string) {
|
||||||
errorMessage = message
|
errorMessage = message
|
||||||
})
|
})
|
||||||
if len(errorMessage) > 0 {
|
if len(errorMessage) > 0 {
|
||||||
|
Reference in New Issue
Block a user