aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-ai/src/tui
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2026-04-21 02:34:35 +0100
committerGitHub <noreply@github.com>2026-04-21 02:34:35 +0100
commit65b74277d1f113174ad52cae9ffa93fbef1dc705 (patch)
tree0529b72020207036fe246088ee440944fc24af99 /crates/atuin-ai/src/tui
parentchore(release): prepare for release 18.15.2 (#3421) (diff)
downloadatuin-65b74277d1f113174ad52cae9ffa93fbef1dc705.zip
chore: update to rust 1.95 (#3426)
<!-- Thank you for making a PR! Bug fixes are always welcome, but if you're adding a new feature or changing an existing one, we'd really appreciate if you open an issue, post on the forum, or drop in on Discord --> ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing
Diffstat (limited to 'crates/atuin-ai/src/tui')
-rw-r--r--crates/atuin-ai/src/tui/components/markdown.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/atuin-ai/src/tui/components/markdown.rs b/crates/atuin-ai/src/tui/components/markdown.rs
index f164fdc5..607520b7 100644
--- a/crates/atuin-ai/src/tui/components/markdown.rs
+++ b/crates/atuin-ai/src/tui/components/markdown.rs
@@ -196,11 +196,9 @@ fn parse_markdown<'a>(source: &'a str, styles: &'a MarkdownStyles) -> Text<'stat
Event::End(TagEnd::Item) => {
in_list_item = false;
}
- Event::Start(Tag::List(_)) => {
- if current_line > 0 || !lines[0].is_empty() {
- current_line += 1;
- lines.push(Vec::new());
- }
+ Event::Start(Tag::List(_)) if current_line > 0 || !lines[0].is_empty() => {
+ current_line += 1;
+ lines.push(Vec::new());
}
Event::End(TagEnd::List(_)) => {}
_ => {}