From 035eccbb13653695c088ea49672315a589b9db59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 4 Apr 2020 12:05:40 +0200 Subject: [PATCH] selection: extend: new row must be offsetted with the current view offset --- selection.c | 2 ++ 1 file changed, 2 insertions(+) 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)) {