mothra: fix j command
parent
ec70fc64ad
commit
72989ba9cb
|
@ -540,11 +540,11 @@ void docmd(Panel *p, char *s){
|
||||||
else geturl(s, GET, 0, 1, 0);
|
else geturl(s, GET, 0, 1, 0);
|
||||||
break;
|
break;
|
||||||
case 'j':
|
case 'j':
|
||||||
s=arg(s);
|
s = arg(s);
|
||||||
if(*s)
|
if(*s)
|
||||||
geturl(www(atoi(s)-1)->url->fullname, GET, 0, 0, 0);
|
doprev(nil, 1, wwwtop-atoi(s));
|
||||||
else
|
else
|
||||||
message("no url selected");
|
message("Usgae: j index");
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
s = arg(s);
|
s = arg(s);
|
||||||
|
@ -601,7 +601,7 @@ void hiturl(int buttons, char *url, int map){
|
||||||
void doprev(Panel *p, int buttons, int index){
|
void doprev(Panel *p, int buttons, int index){
|
||||||
int i;
|
int i;
|
||||||
USED(p);
|
USED(p);
|
||||||
if(index >= nwww())
|
if(index < 0 || index >= nwww())
|
||||||
return;
|
return;
|
||||||
i = wwwtop-index-1;
|
i = wwwtop-index-1;
|
||||||
switch(buttons){
|
switch(buttons){
|
||||||
|
|
Loading…
Reference in New Issue