editor: Trim indent guides at last non-empty line (#29482)
Closes #26274 Adjust the end position of indent guides to prevent them from extending through empty space. Also corrected old test values that seemed to have adapted to the indentation's behavior. Release Notes: - Fixed indentation guides extending beyond the final scope in a file.
This commit is contained in:
1 parent
93b6fdb8e5
commit
6592314984
2 files changed
+2
-2
No files matched your search
@@ -5793,7 +5793,7 @@ impl MultiBufferSnapshot {
|
||||
line_indent.len(tab_size) / tab_size
|
||||
+ ((line_indent.len(tab_size) % tab_size) > 0) as u32
|
||||
} else {
|
||||
current_depth
|
||||
0
|
||||
};
|
||||
|
||||
match depth.cmp(¤t_depth) {
|
||||
|
||||
Reference in new issue
Block a user