Compare commits

..
4 Commits
Author SHA1 Message Date
Daniel Imms b2bb848dfe Merge pull request #2299 from Tyriar/release/3.14-5
Pull bug fixes into release/3.14 and bump version
2019-07-10 11:43:59 -07:00
Daniel Imms 8005272aa3 v3.14.5 2019-07-10 11:37:36 -07:00
Daniel Imms c97972b9bb Fix setTheme NPE in 3.14
Fixes #2220
2019-07-10 11:37:18 -07:00
Max Risuhin 0734e97022 Reset isWrapped line flag. 2019-07-10 11:35:54 -07:00
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "xterm",
"description": "Full xterm terminal, in your browser",
"version": "3.14.4",
"version": "3.14.5",
"main": "lib/public/Terminal.js",
"types": "typings/xterm.d.ts",
"repository": "https://github.com/xtermjs/xterm.js",
+3 -1
View File
@@ -832,7 +832,9 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
*/
private _setTheme(theme: ITheme): void {
this._theme = theme;
this._colorManager.setTheme(theme);
if (this._colorManager) {
this._colorManager.setTheme(theme);
}
if (this._renderCoordinator) {
this._renderCoordinator.setColors(this._colorManager.colors);
}
+2 -4
View File
@@ -22,9 +22,7 @@ export function applyWindowsMode(terminal: ITerminal): IDisposable {
const line = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y - 1);
const lastChar = line.get(terminal.cols - 1);
if (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE) {
const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y);
nextLine.isWrapped = true;
}
const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y);
nextLine.isWrapped = (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE);
});
}