Skip to content

Commit 35f7695

Browse files
committed
issue-171 maintain startIndex on insert with decrease option
1 parent 61339e7 commit 35f7695

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/component/classes/buffer.ts

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export class Buffer {
271271
];
272272
if (decrement) {
273273
this.absMinIndex -= count;
274+
this.startIndex -= count;
274275
} else {
275276
this.absMaxIndex += count;
276277
}

0 commit comments

Comments
 (0)