diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-12-28 23:42:56 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-12-28 23:42:56 +0100 |
commit | 9e95cb1ac9877f0be226ff93aa058574b4b2804b (patch) | |
tree | 72f44bbb87d45e3001a34a8a89d31a0edb532ca0 /sys/src/cmd/samterm | |
parent | 45512020d20a495c9936b785bdebe886143ea915 (diff) |
samterm: avoid flushimage when theres nothing new to flush
Diffstat (limited to 'sys/src/cmd/samterm')
-rw-r--r-- | sys/src/cmd/samterm/io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/samterm/io.c b/sys/src/cmd/samterm/io.c index fd12b0ab4..86fb4ceb3 100644 --- a/sys/src/cmd/samterm/io.c +++ b/sys/src/cmd/samterm/io.c @@ -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: |