mothra: make fragment urls work not only from mouse hit

This commit is contained in:
cinap_lenrek 2011-10-13 13:57:41 +02:00
parent c92ddf3fb5
commit 46ecc9eff6

View file

@ -699,12 +699,7 @@ void docmd(Panel *p, char *s){
}
void hiturl(int buttons, char *url, int map){
switch(buttons){
case 1:
if(*url == '#')
scrollto(url+1);
else
geturl(url, GET, 0, 0, map);
break;
case 1: geturl(url, GET, 0, 0, map); break;
case 2: selurl(url); break;
case 4: message("Button 3 hit on url can't happen!"); break;
}
@ -981,6 +976,11 @@ void geturl(char *urlname, int method, char *body, int plumb, int map){
int pfd[2];
Www *w;
if(*urlname == '#'){
scrollto(urlname+1);
return;
}
selurl(urlname);
selection->map=map;