Skip to content

Commit ff3da76

Browse files
committed
issue-225 startIndex is shifted on remove with "increase"
1 parent 55e46ec commit ff3da76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/component/classes/buffer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export class Buffer {
246246
this.absMaxIndex -= toRemove.length;
247247
} else {
248248
this.absMinIndex += toRemove.length;
249+
this.startIndex += toRemove.length;
249250
}
250251
if (!virtual) {
251252
this.items = result;

0 commit comments

Comments
 (0)