diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-04 10:05:40 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-04 10:05:40 +0000 |
| commit | 035eccbb13653695c088ea49672315a589b9db59 (patch) | |
| tree | 4fea9f74c097b67ba9ec56a385aa6c9c0d5a3eab | |
| parent | input: right mouse click extends the current selection (diff) | |
selection: extend: new row must be offsetted with the current view offset
| -rw-r--r-- | selection.c | 2 |
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)) { |
