Skip to content

Commit 2d9fa24

Browse files
committed
Fix closing brace indentation in context view
1 parent 49df0b2 commit 2d9fa24

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ main
55
----
66

77
- Introduce eval feature
8+
- Improve scrolling performance on large files and contexts
9+
- Fix position of closing braces in context view
810

911
0.1.1
1012
-----

src/view/properties.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ pub fn draw_properties(
5555
if !property.children.is_empty() {
5656
draw_properties(theme, &property.children, lines, level + 1, filter_path, truncate_until, line_no);
5757
if *line_no >= *truncate_until {
58-
lines.push(Line::from(vec![Span::raw(delimiters.1)]).style(theme.syntax_brace));
58+
lines.push(Line::from(vec![
59+
Span::raw(format!("{}{}", " ".repeat(level), delimiters.1))
60+
]).style(theme.syntax_brace));
5961
}
6062
*line_no += 1;
6163
}

0 commit comments

Comments
 (0)