git: 9front

Download patch

ref: b3f0b604d878b91fa9345a3e9470fbfb6971ba61
parent: d025792178d0cf35bc7e80b8b48db264c66d753b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 28 18:42:56 EST 2016

samterm: avoid flushimage when theres nothing new to flush

--- a/sys/src/cmd/samterm/io.c
+++ b/sys/src/cmd/samterm/io.c
@@ -129,7 +129,8 @@
 
 	if(got & ~block)
 		return got & ~block;
-	flushimage(display, 1);
+	if(display->bufp > display->buf)
+		flushimage(display, 1);
 	type = alt(alts);
 	switch(type){
 	case RHost:
--