mothra: edit selection fix
This commit is contained in:
parent
5b35bbce54
commit
0b6f559ebc
2 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,7 @@ void pl_snarfedit(Panel *p, int cut){
|
|||
*/
|
||||
int pl_hitedit(Panel *p, Mouse *m){
|
||||
Edit *ep;
|
||||
if(m->buttons&7){
|
||||
if((m->buttons&7)==1){
|
||||
ep=p->data;
|
||||
ep->t->b=p->b;
|
||||
twhilite(ep->t, ep->sel0, ep->sel1, 0);
|
||||
|
|
|
@ -228,6 +228,7 @@ void twselect(Textwin *t, Mouse *m){
|
|||
p1=addpt(p0, Pt(1, 0));
|
||||
twhilite(t, sel0, sel1, 1);
|
||||
for(;;){
|
||||
flushimage(display, 1);
|
||||
*m=emouse();
|
||||
if((m->buttons&7)!=1) break;
|
||||
newsel=twpt2rune(t, m->xy);
|
||||
|
|
Loading…
Reference in a new issue