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){
|
int pl_hitedit(Panel *p, Mouse *m){
|
||||||
Edit *ep;
|
Edit *ep;
|
||||||
if(m->buttons&7){
|
if((m->buttons&7)==1){
|
||||||
ep=p->data;
|
ep=p->data;
|
||||||
ep->t->b=p->b;
|
ep->t->b=p->b;
|
||||||
twhilite(ep->t, ep->sel0, ep->sel1, 0);
|
twhilite(ep->t, ep->sel0, ep->sel1, 0);
|
||||||
|
|
|
@ -228,6 +228,7 @@ void twselect(Textwin *t, Mouse *m){
|
||||||
p1=addpt(p0, Pt(1, 0));
|
p1=addpt(p0, Pt(1, 0));
|
||||||
twhilite(t, sel0, sel1, 1);
|
twhilite(t, sel0, sel1, 1);
|
||||||
for(;;){
|
for(;;){
|
||||||
|
flushimage(display, 1);
|
||||||
*m=emouse();
|
*m=emouse();
|
||||||
if((m->buttons&7)!=1) break;
|
if((m->buttons&7)!=1) break;
|
||||||
newsel=twpt2rune(t, m->xy);
|
newsel=twpt2rune(t, m->xy);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue