summaryrefslogtreecommitdiff
path: root/src/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.c')
-rw-r--r--src/selection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection.c b/src/selection.c
index e4a3e35..2727e8a 100644
--- a/src/selection.c
+++ b/src/selection.c
@@ -132,7 +132,7 @@ static void lines_init(struct lines *L, const struct term *t)
struct line_pos p = screen_top_line(t);
for (int y = 0; y < rows; y++) {
L->pos[y] = p;
- p = line_pos_next(p, screen_get_row(term_active_screen(t), y));
+ p = line_pos_next(p, screen_get_row(&t->scr, y));
}
}
@@ -204,7 +204,7 @@ static const struct cell *line_seg_cells(const struct lines *L, uint64_t id, int
int y = screen_row_of(L, id, seg);
if (y < 0)
return NULL;
- const struct srow *srow = screen_get_row(term_active_screen(t), y);
+ const struct srow *srow = screen_get_row(&t->scr, y);
if (out_wrapped)
*out_wrapped = (srow->flags & RF_WRAPPED) != 0;
if (srow->kind == ROW_CELLS) {
@@ -234,7 +234,7 @@ static bool line_has_wide(const struct lines *L, uint64_t id)
for (int y = 0; y < rows; y++) {
if (L->pos[y].id != id)
continue;
- const struct srow *r = screen_get_row(term_active_screen(t), y);
+ const struct srow *r = screen_get_row(&t->scr, y);
if (r->flags & RF_WIDE)
return true;
if (r->kind == ROW_CELLS && r->len >= L->cols && L->cols > 1 &&