summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-07-20 10:52:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-07-20 10:53:58 +0900
commitead302981cc9d9219e58c1517921e9f2d68a6b6e (patch)
tree0e4a8574ef775582c69266cb9261b969f4906e90 /src
parentfe0ffa14ffb1d4b1c441889d4736fe1063bf65ca (diff)
downloadfzf-ead302981cc9d9219e58c1517921e9f2d68a6b6e.tar.gz
Add support for {*n} and {*nf} placeholder
Close #4458
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 748a2dfc..95977614 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -67,7 +67,7 @@ const maxFocusEvents = 10000
const blockDuration = 1 * time.Second
func init() {
- placeholder = regexp.MustCompile(`\\?(?:{[+*sfr]*[0-9,-.]*}|{q(?::s?[0-9,-.]+)?}|{fzf:(?:query|action|prompt)}|{\+?f?nf?})`)
+ placeholder = regexp.MustCompile(`\\?(?:{[+*sfr]*[0-9,-.]*}|{q(?::s?[0-9,-.]+)?}|{fzf:(?:query|action|prompt)}|{[+*]?f?nf?})`)
whiteSuffix = regexp.MustCompile(`\s*$`)
offsetComponentRegex = regexp.MustCompile(`([+-][0-9]+)|(-?/[1-9][0-9]*)`)
offsetTrimCharsRegex = regexp.MustCompile(`[^0-9/+-]`)