We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f54ded0 commit 0d4e097Copy full SHA for 0d4e097
1 file changed
screen.ts
@@ -158,8 +158,8 @@ namespace user_interface_base {
158
// const res = rowBuf.slice(startIndex % width, chunkSize);
159
const start = startIndex % width;
160
const end = start + chunkSize;
161
- for (let i = start; i < end; i++) {
162
- res[i - start] = rowBuf[i];
+ for (let i = 0; i < chunkSize; i++) {
+ res[i] = rowBuf[i + startIndex];
163
}
164
return res
165
0 commit comments