A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/bar.rs')
| -rw-r--r-- | src/bar.rs | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -7,7 +7,6 @@ use winit::keyboard::{Key, ModifiersState, NamedKey}; use crate::text::TextArea; pub struct Bar { - pub text: crate::text::TextArea, pub last_action: String, } @@ -74,6 +73,14 @@ impl Bar { .zip(row.iter_mut().rev()) .for_each(|(x, y)| y.letter = Some(x)); } + State::Search((x, y, z)) => { + format!("{} ({} of {z})", x.as_str(), y + 1) + .chars() + .zip(row) + .for_each(|(c, x)| { + x.letter = Some(c); + }); + } State::Save => unreachable!(), _ => {} } |