fix typo: mouse->xy, not w->mc.xy
This commit is contained in:
parent
6d25e194e2
commit
ec4011acf7
1 changed files with 3 additions and 3 deletions
|
@ -928,9 +928,9 @@ textselect(Text *t)
|
|||
b = mouse->buttons;
|
||||
q0 = t->q0;
|
||||
q1 = t->q1;
|
||||
dx = abs(clickpt.x - w->mc.xy.x);
|
||||
dy = abs(clickpt.y - w->mc.xy.y);
|
||||
clickpt = w->mc.xy;
|
||||
dx = abs(clickpt.x - mouse->xy.x);
|
||||
dy = abs(clickpt.y - mouse->xy.y);
|
||||
clickpt = mouse->xy;
|
||||
selectq = t->org+frcharofpt(t, mouse->xy);
|
||||
clickcount++;
|
||||
if(mouse->msec-clickmsec >= 500 || selecttext != t || clickcount > 3 || dx > 3 || dy > 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue