indent guides: Adjust handling of folded lines (#12375)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2024-05-28 14:54:33 +02:00 committed by GitHub
parent df4c60e36c
commit 1cf3496fda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,7 +147,9 @@ pub fn indent_guides_in_range(
.into_iter()
.filter(|indent_guide| {
// Filter out indent guides that are inside a fold
!snapshot.is_line_folded(indent_guide.multibuffer_row_range.start)
!snapshot.is_line_folded(MultiBufferRow(
indent_guide.multibuffer_row_range.start.0.saturating_sub(1),
))
})
.collect()
}