tasks: Display runnables at the start of folds (#18526)
Release Notes: - Fixed task indicators not showing up at the starts of folds.
This commit is contained in:
parent
5f35fa5d92
commit
250f2e76eb
1 changed files with 10 additions and 1 deletions
|
@ -1646,7 +1646,16 @@ impl EditorElement {
|
|||
return None;
|
||||
}
|
||||
if snapshot.is_line_folded(multibuffer_row) {
|
||||
return None;
|
||||
// Skip folded indicators, unless it's the starting line of a fold.
|
||||
if multibuffer_row
|
||||
.0
|
||||
.checked_sub(1)
|
||||
.map_or(false, |previous_row| {
|
||||
snapshot.is_line_folded(MultiBufferRow(previous_row))
|
||||
})
|
||||
{
|
||||
return None;
|
||||
}
|
||||
}
|
||||
let button = editor.render_run_indicator(
|
||||
&self.style,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue