Skip to content

Commit b2bb848

Browse files
authored
Merge pull request #2299 from Tyriar/release/3.14-5
Pull bug fixes into release/3.14 and bump version
2 parents 2a67918 + 8005272 commit b2bb848

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xterm",
33
"description": "Full xterm terminal, in your browser",
4-
"version": "3.14.4",
4+
"version": "3.14.5",
55
"main": "lib/public/Terminal.js",
66
"types": "typings/xterm.d.ts",
77
"repository": "https://github.com/xtermjs/xterm.js",

src/Terminal.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,9 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
832832
*/
833833
private _setTheme(theme: ITheme): void {
834834
this._theme = theme;
835-
this._colorManager.setTheme(theme);
835+
if (this._colorManager) {
836+
this._colorManager.setTheme(theme);
837+
}
836838
if (this._renderCoordinator) {
837839
this._renderCoordinator.setColors(this._colorManager.colors);
838840
}

src/WindowsMode.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ export function applyWindowsMode(terminal: ITerminal): IDisposable {
2222
const line = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y - 1);
2323
const lastChar = line.get(terminal.cols - 1);
2424

25-
if (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE) {
26-
const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y);
27-
nextLine.isWrapped = true;
28-
}
25+
const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y);
26+
nextLine.isWrapped = (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE);
2927
});
3028
}

0 commit comments

Comments
 (0)