From f669cce5b9970b074aa81412f0722e280e368444 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 17 Jul 2019 12:59:12 +0200 Subject: selection: bug: apply grid's view offset when starting a selection --- selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selection.c') diff --git a/selection.c b/selection.c index 9fc304c5..76b4d3dc 100644 --- a/selection.c +++ b/selection.c @@ -97,7 +97,7 @@ selection_start(struct terminal *term, int col, int row) selection_cancel(term); LOG_DBG("selection started at %d,%d", row, col); - term->selection.start = (struct coord){col, row}; + term->selection.start = (struct coord){col, term->grid->view + row}; term->selection.end = (struct coord){-1, -1}; } -- cgit v1.3