Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac923e55d2 | ||
|
|
e08e5607ed | ||
|
|
2ac2eeadfc | ||
|
|
ffadc0b31d |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "xterm",
|
"name": "xterm",
|
||||||
"description": "Full xterm terminal, in your browser",
|
"description": "Full xterm terminal, in your browser",
|
||||||
"version": "5.2.0",
|
"version": "5.2.1",
|
||||||
"main": "lib/xterm.js",
|
"main": "lib/xterm.js",
|
||||||
"style": "css/xterm.css",
|
"style": "css/xterm.css",
|
||||||
"types": "typings/xterm.d.ts",
|
"types": "typings/xterm.d.ts",
|
||||||
|
|||||||
@@ -1152,10 +1152,12 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
* @param y row index
|
* @param y row index
|
||||||
*/
|
*/
|
||||||
private _resetBufferLine(y: number, respectProtect: boolean = false): void {
|
private _resetBufferLine(y: number, respectProtect: boolean = false): void {
|
||||||
const line = this._activeBuffer.lines.get(this._activeBuffer.ybase + y)!;
|
const line = this._activeBuffer.lines.get(this._activeBuffer.ybase + y);
|
||||||
line.fill(this._activeBuffer.getNullCell(this._eraseAttrData()), respectProtect);
|
if (line) {
|
||||||
this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase + y);
|
line.fill(this._activeBuffer.getNullCell(this._eraseAttrData()), respectProtect);
|
||||||
line.isWrapped = false;
|
this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase + y);
|
||||||
|
line.isWrapped = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -178,12 +178,16 @@ export class OptionsService extends Disposable implements IOptionsService {
|
|||||||
if (value <= 0) {
|
if (value <= 0) {
|
||||||
throw new Error(`${key} cannot be less than or equal to 0, value: ${value}`);
|
throw new Error(`${key} cannot be less than or equal to 0, value: ${value}`);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 'rows':
|
case 'rows':
|
||||||
case 'cols':
|
case 'cols':
|
||||||
if (!value && value !== 0) {
|
if (!value && value !== 0) {
|
||||||
throw new Error(`${key} must be numeric, value: ${value}`);
|
throw new Error(`${key} must be numeric, value: ${value}`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'windowsPty':
|
||||||
|
value = value ?? {};
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user