mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-24 23:47:05 +00:00
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()
|
||||
.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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue