restruct: 9e

This commit is contained in:
i do not exist 2026-06-28 14:31:32 +03:00
parent 19ab138320
commit a8febbe96f
4 changed files with 20 additions and 23 deletions

View file

@ -61,7 +61,7 @@ impl Bind<TuiEvent, Arc<str>> {
// TODO
Ok(())
} else if let Ok(Some(_word)) = item.expr().head().word() {
if let Some(key) = TuiEvent::named(item.expr()?.head()?)? {
if let Some(key) = TuiKey::from_dsl(item.expr()?.head()?)? {
map.add(key, Binding {
commands: [item.expr()?.tail()?.unwrap_or_default().into()].into(),
condition: None,