diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-11 18:39:23 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-11 18:39:23 +0000 |
| commit | 335bf2e5b4cda58e56860d3cc3ad23e215c80a78 (patch) | |
| tree | 93cffbfa13cb7b78a3051c3975b4fc32d387ad1f /selection.c | |
| parent | term: log error when failing to initialize the primary fonts (diff) | |
| parent | selection: handle line break at last column correctly (diff) | |
Merge branch 'text-reflow'
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/selection.c b/selection.c index 2c7bc0b2..f1485f45 100644 --- a/selection.c +++ b/selection.c @@ -212,7 +212,8 @@ extract_one(struct terminal *term, struct row *row, struct cell *cell, struct extract *ctx = data; if (ctx->last_row != NULL && row != ctx->last_row && - ((term->selection.kind == SELECTION_NORMAL && ctx->last_cell->wc == 0) || + ((term->selection.kind == SELECTION_NORMAL && + (ctx->last_cell->wc == 0 || ctx->last_cell->attrs.linefeed)) || term->selection.kind == SELECTION_BLOCK)) { /* Last cell was the last column in the selection */ |
