shithub: riscv

Download patch

ref: 8b95dad2080bef9958a91501a863dd29cc46345c
parent: 8635cc20b14553f088c937a75e92ebda02cd0c63
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;