mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-07 18:16:42 +01:00
auto impl getters/setters on Entry
This commit is contained in:
parent
4619d0ea76
commit
44a2108585
3 changed files with 43 additions and 54 deletions
|
|
@ -18,10 +18,7 @@ impl Taggart {
|
|||
{
|
||||
let value = (column.getter)(&self.entries[self.cursor]);
|
||||
let value = format!("{}", value.unwrap_or_default());
|
||||
self.mode = Some(Mode::Edit {
|
||||
index: value.len(),
|
||||
value: value.into(),
|
||||
});
|
||||
self.mode = Some(Mode::Edit { index: value.len(), value: value.into(), });
|
||||
}
|
||||
}
|
||||
pub fn edit_cancel (&mut self) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue