summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-09-14 16:58:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-09-14 20:36:10 +0900
commit0f02fc0c77356a7b72b05131edf6c99d8efa6d33 (patch)
treea2eb5c53905e9f7a48dfc4e621fb5d447efec374 /src/core.go
parent3f90fb42d8871920138ace9878502f22a4d91e85 (diff)
Reset {n} after reload
Fix #2611
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.go b/src/core.go
index d9a83bd4..6244c99a 100644
--- a/src/core.go
+++ b/src/core.go
@@ -233,6 +233,7 @@ func Run(opts *Options, version string, revision string) {
clearCache = util.Once(true)
clearSelection = util.Once(true)
chunkList.Clear()
+ itemIndex = 0
header = make([]string, 0, opts.HeaderLines)
go reader.restart(command)
}