aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-25 19:33:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-25 19:33:27 +0000
commit45ba9f9c8f3b38e20092d97ee6a34f7bc27e0198 (patch)
treea5ec0af7046e15eb457a7382dc7f5ce6807597d9 /grid.c
parentterm: visual_focus_in/out: redraw CSDs (diff)
grid: grid_reflow(): may be called with old_rows/cols == new_rows/cols
TODO: avoid calling grid_reflow() in this case.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grid.c b/grid.c
index 463dca7e..d538edc9 100644
--- a/grid.c
+++ b/grid.c
@@ -60,7 +60,7 @@ grid_reflow(struct grid *grid, int new_rows, int new_cols,
const int old_rows = grid->num_rows;
const int old_cols = grid->num_cols;
- assert(old_rows != new_rows || old_cols != new_cols);
+ //assert(old_rows != new_rows || old_cols != new_cols);
int new_col_idx = 0;
int new_row_idx = 0;