refactor table render; fix backspace; only works in col 0?

This commit is contained in:
🪞👃🪞 2025-03-22 01:52:58 +02:00
parent 6e0bf1e4b6
commit ac8e3dd198
3 changed files with 51 additions and 26 deletions

View file

@ -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!()