mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
add optional column setters
This commit is contained in:
parent
c3fbc6abf1
commit
138bba99cb
2 changed files with 23 additions and 16 deletions
|
|
@ -75,7 +75,7 @@ impl Taggart {
|
|||
})
|
||||
}
|
||||
pub fn edit_begin (&mut self) {
|
||||
let value = (self.columns.0[self.column].value)(&self.paths[self.cursor]);
|
||||
let value = (self.columns.0[self.column].getter)(&self.paths[self.cursor]);
|
||||
let value = format!("{}", value.unwrap_or_default());
|
||||
self.editing = Some((value.len(), value));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue