git: 9front

Download patch

ref: 324e332260e6d00e69b986f9c6acb926df63a764
parent: f2f8d61ae6fe1c5c81188e027c672be88fcacaed
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 18 05:34:05 EST 2015

libdraw: fix broken eenter()

eenter would go into a endless loop in the redraw avoidance case
because the label was misplaced.

--- a/sys/src/libdraw/eenter.c
+++ b/sys/src/libdraw/eenter.c
@@ -95,6 +95,7 @@
 		}
 		flushimage(display, 1);
 
+nodraw:
 		i = Ekeyboard;
 		if(m != nil)
 			i |= Emouse;
@@ -111,7 +112,6 @@
 		sc = b->clipr;
 		replclipr(b, 0, b->r);
 
-nodraw:
 		switch(i){
 		default:
 			done = 1;
--