From 473d1e4c9d42af4309567342b08959c380de4590 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Tue, 2 Jun 2015 15:32:49 +0800 Subject: [PATCH] fix Text will wrap to the next line, when match '-' --- src/term.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/term.js b/src/term.js index e7d711f..db75fd5 100644 --- a/src/term.js +++ b/src/term.js @@ -719,6 +719,7 @@ Terminal.prototype.open = function(parent) { this.element.setAttribute('spellcheck', 'false'); this.element.style.backgroundColor = this.colors[256]; this.element.style.color = this.colors[257]; + this.element.style.whiteSpace = 'nowrap'; // Create the lines for our terminal. this.children = [];