mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-28 10:22:47 +08:00
update files
This commit is contained in:
parent
7a3836ada5
commit
0cfbb0c0ac
@ -1028,12 +1028,12 @@ AnsiTerminal.prototype.getStyles = function (){
|
|||||||
var rows = this.screen.buffer.length;
|
var rows = this.screen.buffer.length;
|
||||||
var stylesBuffer = this.stylesBuffer || [];
|
var stylesBuffer = this.stylesBuffer || [];
|
||||||
|
|
||||||
stylesBuffer = stylesBuffer.slice(0, rows);
|
stylesBuffer = stylesBuffer.slice(0, -rows);
|
||||||
|
|
||||||
for (i = 0; i < rows; ++i) {
|
for (i = 0; i < rows; ++i) {
|
||||||
stylesBuffer[i] = stylesBuffer[i] || [];
|
stylesBuffer[i] = stylesBuffer[i] || [];
|
||||||
cols = this.screen.buffer[i].cells.length;
|
cols = this.screen.buffer[i].cells.length;
|
||||||
stylesBuffer[i] = stylesBuffer[i].slice(0, cols);
|
stylesBuffer[i] = stylesBuffer[i].slice(-cols);
|
||||||
|
|
||||||
for (j = 0; j < cols; ++j) {
|
for (j = 0; j < cols; ++j) {
|
||||||
styleBuffer = stylesBuffer[i][j];
|
styleBuffer = stylesBuffer[i][j];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user