From cc6d65d18a913b6efba8c375799a41330347465f Mon Sep 17 00:00:00 2001 From: Tobias Predel Date: Thu, 7 Sep 2023 17:41:14 +0200 Subject: [PATCH] Consider column widths for selection cloning (#500) --- src/grid.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/grid.h b/src/grid.h index 9c743a1b..9c9bd5da 100755 --- a/src/grid.h +++ b/src/grid.h @@ -102,6 +102,7 @@ struct Grid { unique_ptr CloneSel(const Selection &s) { auto cl = make_unique(nullptr, s.g->cell, CT_DATA, new Grid(s.xs, s.ys)); foreachcellinsel(c, s) cl->grid->C(x - s.x, y - s.y) = c->Clone(cl.get()).release(); + loop(i, s.xs) cl->grid->colwidths[i] = s.g->colwidths[i]; return cl; }