Skip to content

Commit dc65194

Browse files
authored
Merge pull request #263 from Muscraft/message-continue
fix: Message is continuation if any element follows
2 parents fd88973 + 94534a2 commit dc65194

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/renderer/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,7 @@ impl Renderer {
310310
title,
311311
max_line_num_len,
312312
title_style,
313-
matches!(
314-
peek,
315-
Some(Element::Message(_)) | Some(Element::Padding(_))
316-
),
313+
peek.is_some(),
317314
buffer_msg_line_offset,
318315
);
319316
last_was_suggestion = false;

tests/rustc_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3848,7 +3848,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
38483848
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
38493849
╭▸ $SRC_DIR/core/src/cmp.rs:961:20
38503850
3851-
note: the trait is not dyn compatible because it uses `Self` as a type parameter
3851+
note: the trait is not dyn compatible because it uses `Self` as a type parameter
38523852
⸬ $SRC_DIR/core/src/cmp.rs:338:14
38533853
38543854
╰ note: the trait is not dyn compatible because it uses `Self` as a type parameter

0 commit comments

Comments
 (0)