Fix more cases where ' ' doesn't have code
This commit is contained in:
+6
-3
@@ -1983,7 +1983,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
if (!line) {
|
if (!line) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const ch: CharData = [this.eraseAttr(), ' ', 1]; // xterm
|
const ch: CharData = [this.eraseAttr(), ' ', 1, 32 /* ' '.charCodeAt(0) */]; // xterm
|
||||||
for (; x < this.cols; x++) {
|
for (; x < this.cols; x++) {
|
||||||
line[x] = ch;
|
line[x] = ch;
|
||||||
}
|
}
|
||||||
@@ -2000,7 +2000,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
if (!line) {
|
if (!line) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const ch: CharData = [this.eraseAttr(), ' ', 1]; // xterm
|
const ch: CharData = [this.eraseAttr(), ' ', 1, 32 /* ' '.charCodeAt(0) */]; // xterm
|
||||||
x++;
|
x++;
|
||||||
while (x--) {
|
while (x--) {
|
||||||
line[x] = ch;
|
line[x] = ch;
|
||||||
@@ -2068,7 +2068,10 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
* @param cur
|
* @param cur
|
||||||
*/
|
*/
|
||||||
public ch(cur?: boolean): CharData {
|
public ch(cur?: boolean): CharData {
|
||||||
return cur ? [this.eraseAttr(), ' ', 1] : [this.defAttr, ' ', 1];
|
if (cur) {
|
||||||
|
return [this.eraseAttr(), ' ', 1, 32 /* ' '.charCodeAt(0) */];
|
||||||
|
}
|
||||||
|
return [this.defAttr, ' ', 1, 32 /* ' '.charCodeAt(0) */];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user