aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-04 10:05:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-04 10:05:40 +0000
commit035eccbb13653695c088ea49672315a589b9db59 (patch)
tree4fea9f74c097b67ba9ec56a385aa6c9c0d5a3eab
parentinput: right mouse click extends the current selection (diff)
selection: extend: new row must be offsetted with the current view offset
-rw-r--r--selection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index ba6271ab..534a0888 100644
--- a/selection.c
+++ b/selection.c
@@ -505,6 +505,8 @@ selection_extend(struct terminal *term, int col, int row, uint32_t serial)
return;
}
+ row += term->grid->view;
+
if ((row == term->selection.start.row && col == term->selection.start.col) ||
(row == term->selection.end.row && col == term->selection.end.col))
{