From 75830ba016f597ac9ad7a09bc469e7023cec01b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 10 Aug 2019 20:22:02 +0200 Subject: [PATCH] selection: regression: last cell wasn't included in copied text --- selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selection.c b/selection.c index 1bd46ff4..45f970f2 100644 --- a/selection.c +++ b/selection.c @@ -73,7 +73,7 @@ extract_selection(const struct terminal *term) */ 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++) { const struct cell *cell = &row->cells[col];