skip broken links for executable completion

This commit is contained in:
Gokcehan 2016-12-15 16:19:01 +03:00
parent 22b157a8fa
commit d3de4d8f32

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 {