diff --git a/src/app/mode.rs b/src/app/mode.rs index 601a95f..612d31f 100644 --- a/src/app/mode.rs +++ b/src/app/mode.rs @@ -112,13 +112,17 @@ impl Mode { return; } // edit cell - 'i' | 'a' | 'r' => { + 'i' | 'a' => { let (x, y) = app.grid.selected_cell; let val = app.grid.get_cell_raw(x, y).as_ref().map(|f| f.to_string()).unwrap_or(String::new()); app.mode = Mode::Insert(Chord::from(val)); } + // replace cell + 'r' => { + app.mode = Mode::Insert(Chord::from(String::new())); + } 'I' => { /* insert col before */ } 'A' => { /* insert col after */ } 'o' => { /* insert row below */ }