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,6 +129,7 @@ again:
if(got & ~block) if(got & ~block)
return got & ~block; return got & ~block;
if(display->bufp > display->buf)
flushimage(display, 1); flushimage(display, 1);
type = alt(alts); type = alt(alts);
switch(type){ switch(type){