refactor: reorganize source and tests
This commit is contained in:
1 parent
15d76c18a0
commit
c6205a337c
139 files changed
+5532
-5548
No files matched your search
@@ -569,11 +569,6 @@ fn push_text_block(blocks: &mut Vec<DocumentBlock>, source: &str) {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
fn formatted_text(source: &str, width: u16) -> Text<'static> {
|
||||
external_markdown_text(source, width).0
|
||||
}
|
||||
|
||||
fn external_markdown_text(source: &str, width: u16) -> (Text<'static>, Vec<LinkTarget>) {
|
||||
let theme = markdown_theme();
|
||||
let rule_style = theme.rule;
|
||||
@@ -1479,7 +1474,7 @@ fn prepare_image(
|
||||
if let Ok(mut pending) = pending.lock() {
|
||||
pending.push(PreparedImageResult { url, key, result });
|
||||
}
|
||||
crate::tui::request_redraw();
|
||||
crate::feedback::request_redraw();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user