indent guides: Adjust handling of folded lines (#12375)
Release Notes: - N/A
This commit is contained in:
parent
df4c60e36c
commit
1cf3496fda
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,9 @@ pub fn indent_guides_in_range(
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter(|indent_guide| {
|
.filter(|indent_guide| {
|
||||||
// Filter out indent guides that are inside a fold
|
// 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()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue