ref: 46ecc9eff6f237510d6671914a533fa06bdb890e
parent: c92ddf3fb5efe2e37ac9e3b1a1129f82de1bf837
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Thu Oct 13 09:57:41 EDT 2011
mothra: make fragment urls work not only from mouse hit
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -699,12 +699,7 @@
}
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;
}
@@ -980,6 +975,11 @@
char *file, cmd[NNAME];
int pfd[2];
Www *w;
+
+ if(*urlname == '#'){
+ scrollto(urlname+1);
+ return;
+ }
selurl(urlname);
selection->map=map;