mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Fix kitten choose-files panic
Error: Panicked: runtime error: invalid memory address or nil pointer
dereference
Panicked with error: runtime error: invalid memory address or nil
pointer dereference
Stacktrace (most recent call first):
github.com/kovidgoyal/kitty/kittens/choose_files.(*FileSystemScanner).worker
kitty/kittens/choose_files/scan.go:351
This commit is contained in:
@@ -447,8 +447,8 @@ func (fss *FileSystemScorer) Start() {
|
||||
}
|
||||
if fss.global_gitignore != nil {
|
||||
sc.global_gitignore = fss.global_gitignore
|
||||
} else {
|
||||
sc.global_gitignore = ignorefiles.GlobalGitignore()
|
||||
} else if ignore := ignorefiles.GlobalGitignore(); ignore != nil {
|
||||
sc.global_gitignore = ignore
|
||||
}
|
||||
if fss.global_ignore != nil {
|
||||
sc.global_ignore = fss.global_ignore
|
||||
|
||||
Reference in New Issue
Block a user