summaryrefslogtreecommitdiff
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-23 19:47:56 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-23 19:47:56 +0900
commit461115afde3041cff31c27e490d7c28c0b6c28c4 (patch)
treeaaec0ce4a82dd50842ea9b5bd49e59135705fc79 /src/core.go
parentbae196523189988d9d5fa2a13880f9b1f36dedf0 (diff)
downloadfzf-461115afde3041cff31c27e490d7c28c0b6c28c4.tar.gz
Add support for {n} in --with-nth and --accept-nth templates
Close #4275
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go
index 939910b3..d639769d 100644
--- a/src/core.go
+++ b/src/core.go
@@ -128,7 +128,7 @@ func Run(opts *Options) (int, error) {
}
}
}
- transformed := nthTransformer(tokens)
+ transformed := nthTransformer(tokens, itemIndex)
if len(header) < opts.HeaderLines {
header = append(header, transformed)
eventBox.Set(EvtHeader, header)