diff options
| author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-26 19:21:04 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-26 19:21:04 +0200 |
| commit | 5961379aba45ea41a9234f13dcef1e2994970755 (patch) | |
| tree | c69ad9f73fcd8e0ccab2352fb6b70695a7d07973 | |
| parent | 8035bb7dd1a83e3b98b3bb54defe0dbf35c861cf (diff) | |
| download | plan9front-5961379aba45ea41a9234f13dcef1e2994970755.tar.xz | |
mothra: display url is page list if no title is available
| -rw-r--r-- | sys/src/cmd/mothra/mothra.c | 6 |
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; } |
