diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
| commit | 513bf031a589d9e2a1a2730adf56f95e5e316a06 (patch) | |
| tree | 66ef6b095e6aa00c790ac37705fb9df3b099b92a /src/selection.c | |
| parent | 234dd752dc2e15afab38cbbf78f8aa32be72ea5f (diff) | |
Remove unused private functions and inline trivial helpers
Diffstat (limited to 'src/selection.c')
| -rw-r--r-- | src/selection.c | 6 |
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 && |
