diff options
Diffstat (limited to 'src/hist_view.h')
| -rw-r--r-- | src/hist_view.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/hist_view.h b/src/hist_view.h index 0214c0b..d09b5d0 100644 --- a/src/hist_view.h +++ b/src/hist_view.h @@ -49,12 +49,18 @@ void term_hist_view_scroll_to(struct hist_view *v, const struct hist *h, int col struct line_pos screen_top, int offset); void term_hist_view_reset_bottom(struct hist_view *v); +struct hist_view_pos { + uint64_t id; + int seg; + int screen_y; +}; + /* Clamp an evicted anchor. This does not update the index on the write path. */ void term_hist_view_note_push(struct hist_view *v, const struct hist *h, int cols); void term_hist_view_rewrap(struct hist_view *v, const struct hist *h, int cols); 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); #endif |
