summaryrefslogtreecommitdiff
path: root/src/reader.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-10-25 13:50:15 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-10-25 13:50:58 +0900
commitd65c6101a84628b49f1e666977a8b62179f7276e (patch)
tree161a1607a546cbc703925c01491f06928d0928ea /src/reader.go
parent3c40b1bd51a895a907dbae5d30f6d9e99bdc1f90 (diff)
downloadfzf-d65c6101a84628b49f1e666977a8b62179f7276e.tar.gz
walker: Do not treat '..' as a hidden entry
Thanks to @LangLangBart for the suggested fix Fix #4048
Diffstat (limited to 'src/reader.go')
-rw-r--r--src/reader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.go b/src/reader.go
index ecdf509c..572c9c62 100644
--- a/src/reader.go
+++ b/src/reader.go
@@ -265,7 +265,7 @@ func (r *Reader) readFiles(root string, opts walkerOpts, ignores []string) bool
isDir := de.IsDir()
if isDir || opts.follow && isSymlinkToDir(path, de) {
base := filepath.Base(path)
- if !opts.hidden && base[0] == '.' {
+ if !opts.hidden && base[0] == '.' && base != ".." {
return filepath.SkipDir
}
for _, ignore := range ignores {