diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-15 18:00:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-15 18:00:18 +0000 |
| commit | a089d6264d941876f4fc6292a28770dfd708007a (patch) | |
| tree | af784319f0f379271f99562568d125b536853460 /selection.c | |
| parent | render: resize: don't reflow text if grid layout hasn't changed (diff) | |
| parent | render: reflow: set 'linebreak' flag before inserting new line (diff) | |
Merge branch 'text-reflow-fixes'
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selection.c b/selection.c index f1485f45..189119d9 100644 --- a/selection.c +++ b/selection.c @@ -213,7 +213,7 @@ extract_one(struct terminal *term, struct row *row, struct cell *cell, if (ctx->last_row != NULL && row != ctx->last_row && ((term->selection.kind == SELECTION_NORMAL && - (ctx->last_cell->wc == 0 || ctx->last_cell->attrs.linefeed)) || + ctx->last_row->linebreak) || term->selection.kind == SELECTION_BLOCK)) { /* Last cell was the last column in the selection */ |
