skip broken links for executable completion
This commit is contained in:
parent
22b157a8fa
commit
d3de4d8f32
1
comp.go
1
comp.go
@ -114,6 +114,7 @@ func matchExec(s string) (matches []string, longest string) {
|
|||||||
f, err = os.Stat(filepath.Join(p, f.Name()))
|
f, err = os.Stat(filepath.Join(p, f.Name()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("getting file information: %s", err)
|
log.Printf("getting file information: %s", err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if !f.Mode().IsRegular() || f.Mode()&0111 == 0 {
|
if !f.Mode().IsRegular() || f.Mode()&0111 == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user