skip broken links for executable completion

This commit is contained in:
Gokcehan committed 2016-12-15 16:19:01 +03:00
1 parent 22b157a8fa
commit d3de4d8f32
1 file changed
+1
+1
View File
@@ -114,6 +114,7 @@ func matchExec(s string) (matches []string, longest string) {
f, err = os.Stat(filepath.Join(p, f.Name()))
if err != nil {
log.Printf("getting file information: %s", err)
continue
}
if !f.Mode().IsRegular() || f.Mode()&0111 == 0 {