redo
All checks were successful
Test Rust project / test (ubuntu-latest, stable) (push) Successful in 43s
All checks were successful
Test Rust project / test (ubuntu-latest, stable) (push) Successful in 43s
Undo / Redo are currently bound to Pageup/down. This is ideally temporary, I just need to figure out ctrl+r for redo. "u" is also bound to undo as it should be
This commit is contained in:
@@ -243,7 +243,7 @@ impl Grid {
|
||||
self.current_grid = self.current_grid.saturating_sub(1);
|
||||
}
|
||||
pub fn redo(&mut self) {
|
||||
self.current_grid += 1;
|
||||
self.current_grid = min(self.grid_history.len() - 1, self.current_grid + 1);
|
||||
}
|
||||
|
||||
pub fn transact_on_grid<F>(&mut self, mut action: F)
|
||||
|
||||
Reference in New Issue
Block a user