mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
factor input handling into modes
This commit is contained in:
parent
648c37e9d4
commit
48f651fc0f
5 changed files with 115 additions and 74 deletions
|
|
@ -25,11 +25,11 @@ pub enum Mode {
|
|||
value: Arc<str>,
|
||||
index: usize,
|
||||
},
|
||||
Apply {
|
||||
Save {
|
||||
value: bool,
|
||||
},
|
||||
Unsaved {
|
||||
value: u8
|
||||
Quit {
|
||||
value: bool,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue