shithub: vdir

Download patch

ref: e3d75ecc0a3305126ed697789cc16df264c5939d
parent: 18bf5ea941fc12c2239a4ef21abd091d6588ba0b
author: phil9 <[email protected]>
date: Fri Apr 2 13:39:15 EDT 2021

fix directory check (thanks kvik)

--- a/vdir.c
+++ b/vdir.c
@@ -420,7 +420,7 @@
 			if(offset+n>=ndirs)
 				return;
 			d = dirs[offset+n];
-			if(d.qid.type && QTDIR){
+			if(d.qid.type & QTDIR){
 				cd(d.name);
 				redraw();
 			}else