mothra: edit selection fix

This commit is contained in:
cinap_lenrek 2012-07-08 22:25:23 +02:00
parent 5b35bbce54
commit 0b6f559ebc
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

@ -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);