diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index f7d782b..459e672 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -367,6 +367,8 @@ impl Renderer { primary_path.or(og_primary_path), matches_previous_suggestion, is_first, + //matches!(peek, Some(Element::Message(_) | Element::Padding(_))), + peek.is_some(), ); if matches!(peek, Some(Element::Suggestion(_))) { @@ -1619,6 +1621,7 @@ impl Renderer { primary_path: Option<&Cow<'_, str>>, matches_previous_suggestion: bool, is_first: bool, + is_cont: bool, ) { let suggestions = sm.splice_lines(suggestion.markers.clone()); @@ -2010,7 +2013,11 @@ impl Renderer { | DisplaySuggestion::Underline => row_num - 1, DisplaySuggestion::None => row_num, }; - self.draw_col_separator_end(buffer, row, max_line_num_len + 1); + if is_cont { + self.draw_col_separator_no_space(buffer, row, max_line_num_len + 1); + } else { + self.draw_col_separator_end(buffer, row, max_line_num_len + 1); + } row_num = row + 1; } } diff --git a/tests/rustc_tests.rs b/tests/rustc_tests.rs index 2da6156..62daaaf 100644 --- a/tests/rustc_tests.rs +++ b/tests/rustc_tests.rs @@ -4071,7 +4071,7 @@ LL + use std::collections::binary_heap::IntoIter; LL + use std::collections::btree_map::IntoIter; ├╴ LL + use std::collections::btree_set::IntoIter; - ╰╴ + │ ╰ and 9 other candidates "#]]; let renderer = renderer.theme(OutputTheme::Unicode); @@ -4392,7 +4392,7 @@ LL - wtf: None, LL - x: (), LL - })), LL + wtf: Some(Box::new_in(_, _)), - ╰╴ + │ ╰ and 12 other candidates help: consider using the `Default` trait ╭╴ @@ -4528,7 +4528,7 @@ LL │ t.a1.bar(); LL │ t.a2.bar(); ├╴ +++ LL │ t.a3.bar(); - ╰╴ +++ + │ +++ ╰ and 6 other candidates "#]]; let renderer = renderer.theme(OutputTheme::Unicode);