summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-03-23 04:03:51 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-03-23 04:03:51 +0100
commit1b734021ebddb6fe8f4829bff2fd1446a19ee4f8 (patch)
treef2197627ec5979a119df896ad5124d8bfa583f2a /sys/src
parent9840c9f18e2b6a15f89ecb3cf6420d2329685c00 (diff)
parentb72bb9571c2e7d3d11278c3eb359ebe675a56264 (diff)
merge
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/mothra/mothra.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c
index 02b9faf23..f7aa2d0ad 100644
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -87,6 +87,7 @@ char *genwww(Panel *, int);
void updtext(Www *);
void dolink(Panel *, int, Rtext *);
void hit3(int, int);
+void mothon(Www *, int);
char *buttons[]={
"alt display",
"moth mode",
@@ -626,6 +627,16 @@ void docmd(Panel *p, char *s){
case 'g':
s = arg(s);
if(*s=='\0'){
+ case 'j':
+ s = arg(s);
+ if(*s)
+ doprev(nil, 1, wwwtop-atoi(s));
+ else
+ message("Usage: j index");
+ break;
+ case 'm':
+ mothon(current, !mothmode);
+ break;
case 'r':
if(selection)
s = urlstr(selection);
@@ -634,13 +645,6 @@ void docmd(Panel *p, char *s){
}
geturl(s, GET, 0, 0, 0);
break;
- case 'j':
- s = arg(s);
- if(*s)
- doprev(nil, 1, wwwtop-atoi(s));
- else
- message("Usage: j index");
- break;
case 'w':
case 'W':
s = arg(s);