Skip to content

Commit 0d4e097

Browse files
committed
screen.ts getBuffer: trying without getRow fix 2
1 parent f54ded0 commit 0d4e097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

screen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ namespace user_interface_base {
158158
// const res = rowBuf.slice(startIndex % width, chunkSize);
159159
const start = startIndex % width;
160160
const end = start + chunkSize;
161-
for (let i = start; i < end; i++) {
162-
res[i - start] = rowBuf[i];
161+
for (let i = 0; i < chunkSize; i++) {
162+
res[i] = rowBuf[i + startIndex];
163163
}
164164
return res
165165
}

0 commit comments

Comments
 (0)