diff options
Diffstat (limited to 'src/hist_view.c')
| -rw-r--r-- | src/hist_view.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hist_view.c b/src/hist_view.c index 29eac35..f5a287b 100644 --- a/src/hist_view.c +++ b/src/hist_view.c @@ -320,7 +320,7 @@ void term_hist_view_scroll(struct hist_view *v, const struct hist *h, int cols, /* A viewport walks exact segments from its anchor, never an estimated row. */ bool term_hist_view_row_pos(const struct hist_view *v, const struct hist *h, int cols, int screen_rows, struct line_pos screen_top, int y, - uint64_t *out_id, int *out_seg, int *out_screen_y) + struct hist_view_pos *pos) { (void)screen_top; if (v->anchor.active && h->lines) { @@ -335,17 +335,17 @@ bool term_hist_view_row_pos(const struct hist_view *v, const struct hist *h, int while (id < hist_end_id(h)) { int count = term_hist_line_rows(h, id, cols); if (target < count) { - *out_id = id; - *out_seg = (int)target; + pos->id = id; + pos->seg = (int)target; return true; } target -= count; id++; } - *out_screen_y = target < screen_rows ? (int)target : screen_rows - 1; + pos->screen_y = target < screen_rows ? (int)target : screen_rows - 1; return false; } - *out_screen_y = y; + pos->screen_y = y; return false; } |
