fix(macros): use $crate re-export in text macro (#1832)
This commit is contained in:
@@ -38,13 +38,13 @@
|
||||
#[macro_export]
|
||||
macro_rules! text {
|
||||
() => {
|
||||
ratatui_core::text::Text::default()
|
||||
$crate::ratatui_core::text::Text::default()
|
||||
};
|
||||
($line:expr; $n:expr) => {
|
||||
ratatui_core::text::Text::from(vec![$line.into(); $n])
|
||||
$crate::ratatui_core::text::Text::from(vec![$line.into(); $n])
|
||||
};
|
||||
($($line:expr),+ $(,)?) => {{
|
||||
ratatui_core::text::Text::from(vec![
|
||||
$crate::ratatui_core::text::Text::from(vec![
|
||||
$(
|
||||
$line.into(),
|
||||
)+
|
||||
|
||||
Reference in New Issue
Block a user