mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
refactor table render; fix backspace; only works in col 0?
This commit is contained in:
parent
6e0bf1e4b6
commit
ac8e3dd198
3 changed files with 51 additions and 26 deletions
|
|
@ -91,7 +91,11 @@ impl Taggart {
|
|||
}
|
||||
}
|
||||
pub fn edit_backspace (&mut self) {
|
||||
todo!()
|
||||
if let Some((index, value)) = &mut self.editing {
|
||||
let mut chars = value.chars();
|
||||
chars.next_back();
|
||||
self.editing = Some((*index, chars.as_str().into()));
|
||||
}
|
||||
}
|
||||
pub fn edit_delete (&mut self) {
|
||||
todo!()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue