final touches on row/column insertion

This commit is contained in:
2025-11-13 17:49:58 -07:00
parent 445c7cc3c2
commit 90c426b854
2 changed files with 10 additions and 2 deletions

View File

@@ -166,11 +166,15 @@ impl Mode {
}
// insert column after
'A' => {
app.grid.insert_column_after(app.grid.cursor());
let c = app.grid.cursor();
app.grid.insert_column_after(c);
app.grid.mv_cursor_to(c.0+1, c.1);
}
// insert row below
'o' => {
app.grid.insert_row_below(app.grid.cursor());
let c = app.grid.cursor();
app.grid.insert_row_below(c);
app.grid.mv_cursor_to(c.0, c.1+1);
}
// insert row above
'O' => {