git: 9front

Download patch

ref: 7fefad5879ece309e7fdfd011a28975af56f5930
parent: 347d8313a068026f3f02dc86f43f1216343e8699
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Wed Sep 26 15:21:04 EDT 2012

mothra: display url is page list if no title is available

--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -484,9 +484,11 @@
 		return 0;
 	i = wwwtop-index-1;
 	w = www(i);
-	if(w->title[0]!='\0')
+	if(w->title[0]!='\0'){
 		w->gottitle=1;
-	snprint(buf, sizeof(buf), "%2d %s", i+1, w->title);
+		snprint(buf, sizeof(buf), "%2d %s", i+1, w->title);
+	} else
+		snprint(buf, sizeof(buf), "%2d %s", i+1, urlstr(w->url));
 	return buf;
 }
 
--