aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-15 18:00:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-15 18:00:18 +0000
commita089d6264d941876f4fc6292a28770dfd708007a (patch)
treeaf784319f0f379271f99562568d125b536853460 /selection.c
parentrender: resize: don't reflow text if grid layout hasn't changed (diff)
parentrender: reflow: set 'linebreak' flag before inserting new line (diff)
Merge branch 'text-reflow-fixes'
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c2
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 */