changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: libdraw: fix broken eenter()

changeset 4222: 8cd112f650b1
parent 4221: 8f9697eed47a
child 4223: 27d6b9ab8cce
author: cinap_lenrek@felloff.net
date: Sun, 18 Jan 2015 10:34:05 +0100
files: sys/src/libdraw/eenter.c
description: libdraw: fix broken eenter()

eenter would go into a endless loop in the redraw avoidance case
because the label was misplaced.
     1.1--- a/sys/src/libdraw/eenter.c
     1.2+++ b/sys/src/libdraw/eenter.c
     1.3@@ -95,6 +95,7 @@ eenter(char *ask, char *buf, int len, Mo
     1.4 		}
     1.5 		flushimage(display, 1);
     1.6 
     1.7+nodraw:
     1.8 		i = Ekeyboard;
     1.9 		if(m != nil)
    1.10 			i |= Emouse;
    1.11@@ -111,7 +112,6 @@ eenter(char *ask, char *buf, int len, Mo
    1.12 		sc = b->clipr;
    1.13 		replclipr(b, 0, b->r);
    1.14 
    1.15-nodraw:
    1.16 		switch(i){
    1.17 		default:
    1.18 			done = 1;