acme: htmlclick takes precedence over line click
http://codereview.appspot.com/116074
This commit is contained in:
parent
fa662c9571
commit
4dbf255619
1 changed files with 3 additions and 3 deletions
|
|
@ -1350,6 +1350,9 @@ textdoubleclick(Text *t, uint *q0, uint *q1)
|
||||||
Rune *r, *l, *p;
|
Rune *r, *l, *p;
|
||||||
uint q;
|
uint q;
|
||||||
|
|
||||||
|
if(textclickhtmlmatch(t, q0, q1))
|
||||||
|
return;
|
||||||
|
|
||||||
for(i=0; left[i]!=nil; i++){
|
for(i=0; left[i]!=nil; i++){
|
||||||
q = *q0;
|
q = *q0;
|
||||||
l = left[i];
|
l = left[i];
|
||||||
|
|
@ -1382,9 +1385,6 @@ textdoubleclick(Text *t, uint *q0, uint *q1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(textclickhtmlmatch(t, q0, q1))
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* try filling out word to right */
|
/* try filling out word to right */
|
||||||
while(*q1<t->file->b.nc && isalnum(textreadc(t, *q1)))
|
while(*q1<t->file->b.nc && isalnum(textreadc(t, *q1)))
|
||||||
(*q1)++;
|
(*q1)++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue