]> git.lizzy.rs Git - plan9front.git/commitdiff
samterm: avoid flushimage when theres nothing new to flush
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 28 Dec 2016 22:42:56 +0000 (23:42 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 28 Dec 2016 22:42:56 +0000 (23:42 +0100)
sys/src/cmd/samterm/io.c

index fd12b0ab4f007909f6f8aade6639614ddc8877d7..86fb4ceb3d95c106158c62c9b931dc94d434b48c 100644 (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: