A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/bar.rs')
-rw-r--r--src/bar.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/bar.rs b/src/bar.rs
index 75d9e5b..d9400a6 100644
--- a/src/bar.rs
+++ b/src/bar.rs
@@ -98,14 +98,16 @@ impl Bar {
});
}
State::Command(x) => {
- chain(['>'], x.tedit.rope.chars()).zip(row).for_each(
- |(x, y)| {
+ ":".chars()
+ .zip(repeat(Style::BOLD | Style::ITALIC))
+ .chain(s(&x.tedit.rope.to_string()))
+ .zip(row)
+ .for_each(|((x, z), y)| {
*y = Cell {
letter: Some(x),
- style: Style { flags: 0, ..y.style },
+ style: Style { flags: z, ..y.style },
}
- },
- );
+ });
}
State::Symbols(Rq {
result: Some(Symbols { tedit, .. }),