File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2403,11 +2403,7 @@ impl Renderer {
2403
2403
col: usize,
2404
2404
is_cont: bool,
2405
2405
) {
2406
- let chr = match self.decor_style {
2407
- DecorStyle::Ascii => "= ",
2408
- DecorStyle::Unicode if is_cont => "├ ",
2409
- DecorStyle::Unicode => "╰ ",
2410
- };
2406
+ let chr = self.decor_style.note_separator(is_cont);
2411
2407
buffer.puts(line, col, chr, ElementStyle::LineNumber);
2412
2408
}
2413
2409
@@ -2827,6 +2823,14 @@ impl DecorStyle {
2827
2823
}
2828
2824
}
2829
2825
2826
+ fn note_separator(&self, is_cont: bool) -> &str {
2827
+ match self {
2828
+ DecorStyle::Ascii => "= ",
2829
+ DecorStyle::Unicode if is_cont => "├ ",
2830
+ DecorStyle::Unicode => "╰ ",
2831
+ }
2832
+ }
2833
+
2830
2834
fn multi_suggestion_separator(&self) -> &'static str {
2831
2835
match self {
2832
2836
DecorStyle::Ascii => "|",
You can’t perform that action at this time.
0 commit comments