From 96d23139fc0b6189dbc172b3b18a2783015b8509 Mon Sep 17 00:00:00 2001 From: nuintun Date: Wed, 25 Nov 2015 14:02:10 +0800 Subject: [PATCH] update files --- static/js/terminal/lib/refresh.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/terminal/lib/refresh.js b/static/js/terminal/lib/refresh.js index 2d09be1..083408e 100644 --- a/static/js/terminal/lib/refresh.js +++ b/static/js/terminal/lib/refresh.js @@ -130,14 +130,12 @@ module.exports = function (Terminal){ out += '>'; break; default: - if (ch === ' ') { + if (ch <= ' ') { out += ' '; - } else if (ch > ' ') { + } else { if (this.isWide(ch)) i++; out += ch; - } else { - if (data === -1) out += ' '; } break; }