This commit is contained in:
cinap_lenrek 2012-03-23 04:03:51 +01:00
commit 1b734021eb
2 changed files with 14 additions and 7 deletions

View file

@ -131,6 +131,9 @@ Jump to page
.I n
from the list of previously viewed pages.
.TP
.BI m
Enter or exit moth mode.
.TP
.B r
Reload the current page.
.TP

View file

@ -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);