A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/bar.rs')
-rw-r--r--src/bar.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bar.rs b/src/bar.rs
index 93ee057..d9400a6 100644
--- a/src/bar.rs
+++ b/src/bar.rs
@@ -97,6 +97,18 @@ impl Bar {
}
});
}
+ State::Command(x) => {
+ ":".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: z, ..y.style },
+ }
+ });
+ }
State::Symbols(Rq {
result: Some(Symbols { tedit, .. }),
request,