mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-01-31 16:36:40 +01:00
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Some checks are pending
/ build (push) Waiting to run
Some checks are pending
/ build (push) Waiting to run
This commit is contained in:
parent
d930025422
commit
dcde588c7b
3 changed files with 55 additions and 45 deletions
|
|
@ -15,8 +15,8 @@ pub struct Mode<D: Dsl + Ord> {
|
|||
}
|
||||
|
||||
impl<D: Dsl + Ord> Draw<TuiOut> for Mode<D> {
|
||||
fn draw (&self, to: &mut TuiOut) {
|
||||
self.content().draw(to)
|
||||
fn draw (&self, _to: &mut TuiOut) {
|
||||
//self.content().draw(to)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -38,7 +38,10 @@ impl Mode<Arc<str>> {
|
|||
"name" => self.name.push(tail.into()),
|
||||
"info" => self.info.push(tail.into()),
|
||||
"view" => self.view.push(tail.into()),
|
||||
"keys" => tail.each(|expr|{self.keys.push(expr.trim().into()); Ok(())})?,
|
||||
"keys" => tail.each(|expr|{
|
||||
self.keys.push(expr.trim().into());
|
||||
Ok(())
|
||||
})?,
|
||||
"mode" => if let Some(id) = tail.head()? {
|
||||
Self::load_into(&self.modes, &id, &tail.tail())?;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue