mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-17 05:03:52 -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 := ""
|
||||
actions := parseSingleActionList(strings.TrimSpace(string(body)), func(message string) {
|
||||
actions := parseSingleActionList(strings.Trim(string(body), "\r\n"), func(message string) {
|
||||
errorMessage = message
|
||||
})
|
||||
if len(errorMessage) > 0 {
|
||||
|
Reference in New Issue
Block a user