shithub: riscv

Download patch

ref: 9e95cb1ac9877f0be226ff93aa058574b4b2804b
parent: 45512020d20a495c9936b785bdebe886143ea915
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: