m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-13 22:03:47 -05:00

Action argument in enclosed form should allow new lines

Close #3138
This commit is contained in:
Junegunn Choi
2023-01-21 22:20:26 +09:00
parent a79de11af7
commit b077f6821d
3 changed files with 6 additions and 2 deletions

View File

@@ -954,7 +954,7 @@ Loop:
ce = regexp.QuoteMeta(ce)
// @$ or @+
loc = regexp.MustCompile(fmt.Sprintf(`^%s.*?(%s[+,]|%s$)`, cs, ce, ce)).FindStringIndex(action)
loc = regexp.MustCompile(fmt.Sprintf(`(?s)^%s.*?(%s[+,]|%s$)`, cs, ce, ce)).FindStringIndex(action)
if loc == nil {
masked += action
break