aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-17 10:59:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-17 10:59:12 +0000
commitf669cce5b9970b074aa81412f0722e280e368444 (patch)
tree7196368280d94ea64ab72d593d8a0e7ed48ea6e2 /selection.c
parentcsi: implement \E[@ (ICH - insert characters) (diff)
selection: bug: apply grid's view offset when starting a selection
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c2
1 files changed, 1 insertions, 1 deletions
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};
}