selection: regression: last cell wasn't included in copied text

This commit is contained in:
Daniel Eklöf 2019-08-10 20:22:02 +02:00
parent 15afd26716
commit 75830ba016
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -73,7 +73,7 @@ extract_selection(const struct terminal *term)
*/ */
for (int col = start_col, empty_count = 0; for (int col = start_col, empty_count = 0;
col < (r == end->row ? end->col : term->cols); col <= (r == end->row ? end->col : term->cols - 1);
col++) col++)
{ {
const struct cell *cell = &row->cells[col]; const struct cell *cell = &row->cells[col];