diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-17 10:59:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-17 10:59:12 +0000 |
| commit | f669cce5b9970b074aa81412f0722e280e368444 (patch) | |
| tree | 7196368280d94ea64ab72d593d8a0e7ed48ea6e2 | |
| parent | csi: implement \E[@ (ICH - insert characters) (diff) | |
selection: bug: apply grid's view offset when starting a selection
| -rw-r--r-- | selection.c | 2 |
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}; } |
