From c40cb4e712dca5f78bd0609150c4f6c78d8ecb81 Mon Sep 17 00:00:00 2001 From: nuintun Date: Tue, 1 Dec 2015 16:04:14 +0800 Subject: [PATCH] update files --- static/js/terminal/xterm.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/js/terminal/xterm.js b/static/js/terminal/xterm.js index 64d6a79..5658a59 100644 --- a/static/js/terminal/xterm.js +++ b/static/js/terminal/xterm.js @@ -701,9 +701,7 @@ TChar.prototype.setAttributes = function (attributes){ var attr = this.attr; ['bold', 'italic', 'underline', 'blink', 'inverse', 'conceal'].map(function (key, i){ - if (attributes[key] !== undefined) { - attr = (attributes[key]) ? attr | (2 << (15 + i)) : attr & ~(2 << (15 + i)); - } + attr = (attributes[key]) ? attr | (2 << (15 + i)) : attr & ~(2 << (15 + i)); }); if (attributes['foreground']) {