Compare commits

...
8 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
Daniel Imms 2a6791881c Merge pull request #2266 from Tyriar/release/3.14_2263
Release/3.14 2263
2019-06-26 10:56:06 -07:00
Daniel Imms 41cfe868e4 v3.14.4
Messed up publish for .3
2019-06-26 10:55:41 -07:00
Daniel Imms 71a998de76 v3.14.3 2019-06-26 10:44:21 -07:00
Daniel Imms 63b25813e7 Fix soft reset breaking default attribute
Fixes #2196
2019-06-26 10:44:06 -07:00
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "xterm",
"description": "Full xterm terminal, in your browser",
"version": "3.14.2",
"version": "3.14.5",
"main": "lib/public/Terminal.js",
"types": "typings/xterm.d.ts",
"repository": "https://github.com/xtermjs/xterm.js",
+1 -1
View File
@@ -1816,7 +1816,7 @@ export class InputHandler extends Disposable implements IInputHandler {
this._terminal.applicationCursor = false;
this._terminal.buffer.scrollTop = 0;
this._terminal.buffer.scrollBottom = this._terminal.rows - 1;
this._terminal.curAttrData = DEFAULT_ATTR_DATA;
this._terminal.curAttrData = DEFAULT_ATTR_DATA.clone();
this._terminal.buffer.x = this._terminal.buffer.y = 0; // ?
this._terminal.charset = null;
this._terminal.glevel = 0; // ??
+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);
});
}
+1 -1
View File
@@ -217,7 +217,7 @@ export class AttributeData implements IAttributeData {
}
}
export const DEFAULT_ATTR_DATA = new AttributeData();
export const DEFAULT_ATTR_DATA = Object.freeze(new AttributeData());
/**
* CellData - represents a single Cell in the terminal buffer.