From ae3ec52507c85395f90bf7c0ecc5b79affdc9b63 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 22 Feb 2021 10:21:58 +0100 Subject: grid: add grid_snapshot() This function deep copies a grid into a newly *allocated* grid struct. --- grid.h | 1 + 1 file changed, 1 insertion(+) (limited to 'grid.h') diff --git a/grid.h b/grid.h index c411b602..1131ac46 100644 --- a/grid.h +++ b/grid.h @@ -4,6 +4,7 @@ #include "debug.h" #include "terminal.h" +struct grid *grid_snapshot(const struct grid *grid); void grid_free(struct grid *grid); void grid_swap_row(struct grid *grid, int row_a, int row_b); -- cgit v1.3