From 159bfddb87040b5d1f3452db1e23015bdf551831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 3 Jun 2020 17:31:41 +0200 Subject: [PATCH] selection: fix typo when extending selection to cover double-width character --- selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selection.c b/selection.c index 44b23860..ae6758f4 100644 --- a/selection.c +++ b/selection.c @@ -458,7 +458,7 @@ selection_update(struct terminal *term, int col, int row) if (wcwidth(row_end->cells[new_end.col - 1].wc) > 1) new_end.col--; if (new_start.col + 1 < term->cols) - if (wcwidth(row_end->cells[new_start.col].wc) > 1) + if (wcwidth(row_start->cells[new_start.col].wc) > 1) new_start.col++; }