samterm: avoid flushimage when theres nothing new to flush

This commit is contained in:
cinap_lenrek 2016-12-28 23:42:56 +01:00
parent 45512020d2
commit 9e95cb1ac9

View file

@ -129,7 +129,8 @@ again:
if(got & ~block)
return got & ~block;
flushimage(display, 1);
if(display->bufp > display->buf)
flushimage(display, 1);
type = alt(alts);
switch(type){
case RHost: