summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/mothra/mothra.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c
index a4ea2202f..4b44cdd68 100644
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -484,9 +484,11 @@ char *genwww(Panel *, int index){
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;
}