Skip to content

Commit d1c2b85

Browse files
committed
fix: Make Title followed by Padding a continuation
1 parent 8101228 commit d1c2b85

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/renderer/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,11 @@ impl Renderer {
316316
title,
317317
max_line_num_len,
318318
title_style,
319-
matches!(peek, Some(Element::Title(_) | Element::Message(_))),
319+
matches!(
320+
peek,
321+
Some(Element::Title(_) | Element::Message(_))
322+
| Some(Element::Padding(_))
323+
),
320324
buffer_msg_line_offset,
321325
);
322326
last_was_suggestion = false;

tests/rustc_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3076,7 +3076,7 @@ LL │ match fut.as_mut().poll(ctx) {
30763076
│ ━━━━ method not found in `Pin<&mut impl Future<Output = ()>>`
30773077
╭▸ $SRC_DIR/core/src/future/future.rs:104:7
30783078
3079-
note: the method is available for `Pin<&mut impl Future<Output = ()>>` here
3079+
note: the method is available for `Pin<&mut impl Future<Output = ()>>` here
30803080
30813081
╰ help: items from traits can only be used if the trait is in scope
30823082
help: trait `Future` which provides `poll` is implemented but not in scope; perhaps you want to import it
@@ -3250,7 +3250,7 @@ LL │ #[derive(Eqr)]
32503250
│ ━━━ help: a derive macro with a similar name exists: `Eq`
32513251
╭▸ $SRC_DIR/core/src/cmp.rs:356:0
32523252
3253-
note: similarly named derive macro `Eq` defined here
3253+
note: similarly named derive macro `Eq` defined here
32543254
32553255
╰ note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
32563256
"#]];

0 commit comments

Comments
 (0)