Skip to content

Commit d97b47e

Browse files
committed
Merge branch 'fix-choosefile-panic' of https://github.com/phanen/kitty
2 parents 2ee11ed + 3c54cb9 commit d97b47e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kittens/choose_files/scan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ func (fss *FileSystemScorer) Start() {
447447
}
448448
if fss.global_gitignore != nil {
449449
sc.global_gitignore = fss.global_gitignore
450-
} else {
451-
sc.global_gitignore = ignorefiles.GlobalGitignore()
450+
} else if ignore := ignorefiles.GlobalGitignore(); ignore != nil {
451+
sc.global_gitignore = ignore
452452
}
453453
if fss.global_ignore != nil {
454454
sc.global_ignore = fss.global_ignore

0 commit comments

Comments
 (0)