Terminal: find, zoom, scrollback, scroll keys, context menu, bell, link hover, OSC 52/7, cursor blink, stale selection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -224,8 +224,14 @@ class IndexAwareCircularBuffer<T extends IndexedItem> {
|
||||
/// instead just adjusts the start index and length.
|
||||
void trimStart(int count) {
|
||||
if (count > _length) count = _length;
|
||||
// The dropped items are detached and the rest keep their indexes, as a
|
||||
// push that overflows does.
|
||||
for (var i = 0; i < count; i++) {
|
||||
_dropChild(i);
|
||||
}
|
||||
_startIndex += count;
|
||||
_startIndex %= _array.length;
|
||||
_absoluteStartIndex += count;
|
||||
_length -= count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user