94ff91c0cf34b236acc5c000d3e03ab680ee9283 — Gregor Best 29 days ago a71f592
Explicitly ignore errors on symlink read

Printing them spams the +Errors window on each redraw.
1 files changed, 3 insertions(+), 3 deletions(-)

M xplor.go
M xplor.go => xplor.go +3 -3
@@ 172,9 172,9 @@ func printContents(w io.Writer, dir string, depth int) error {
 		name := info.Name()
 		path := filepath.Join(dir, name)
 		if info.Mode()&os.ModeSymlink != 0 {
-			if info, err = os.Stat(path); err != nil {
-				log.Println("can't read symlink:", err)
-			}
+			// The error from os.Stat is ignored because logging it just spams the +Errors window
+			// on each repaint.
+			info, _ = os.Stat(path)
 		}
 		if err := printEntry(w, path, info, depth); err != nil {
 			return err