From d3de4d8f329ad45d2440be2cc1724ff5c009aa71 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 15 Dec 2016 16:19:01 +0300 Subject: [PATCH] skip broken links for executable completion --- comp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/comp.go b/comp.go index 05f31c7..2512178 100644 --- a/comp.go +++ b/comp.go @@ -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 {