outline: Fix nesting for declarations that declare multiple names

This commit is contained in:
Michael Sloan 2025-08-11 22:54:53 -06:00
parent b35e69692d
commit e7bf12c79d
No known key found for this signature in database

View file

@ -3661,7 +3661,7 @@ impl BufferSnapshot {
let mut annotation_row_ranges = annotation_row_ranges.into_iter().peekable();
for item in items {
while let Some(last_end) = item_ends_stack.last().copied() {
if last_end < item.range.end {
if last_end <= item.range.end {
item_ends_stack.pop();
} else {
break;