Skip to content

Commit

Permalink
Consider column widths for selection cloning (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo authored Sep 7, 2023
1 parent 7f68776 commit cc6d65d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ struct Grid {
unique_ptr<Cell> CloneSel(const Selection &s) {
auto cl = make_unique<Cell>(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;
}

Expand Down

0 comments on commit cc6d65d

Please sign in to comment.