diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-27 18:03:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-27 18:03:53 +0000 |
| commit | cd513e1761cffac91e714d691dc70826c82061f3 (patch) | |
| tree | 702efe355d2ac75ad89e7c3d41ada13dfbd492c8 /grid.h | |
| parent | changelog: pgo helper binary build fix (missing key-binding stubs) (diff) | |
| parent | changelog: changed behavior of “extend-to-word-boundary” (diff) | |
Merge branch 'master' into releases/1.12
Diffstat (limited to 'grid.h')
| -rw-r--r-- | grid.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -21,6 +21,10 @@ void grid_resize_and_reflow( size_t tracking_points_count, struct coord *const _tracking_points[static tracking_points_count]); +/* Convert row numbers between scrollback-relative and absolute coordinates */ +int grid_row_abs_to_sb(const struct grid *grid, int screen_rows, int abs_row); +int grid_row_sb_to_abs(const struct grid *grid, int screen_rows, int sb_rel_row); + static inline int grid_row_absolute(const struct grid *grid, int row_no) { @@ -33,6 +37,7 @@ grid_row_absolute_in_view(const struct grid *grid, int row_no) return (grid->view + row_no) & (grid->num_rows - 1); } + static inline struct row * _grid_row_maybe_alloc(struct grid *grid, int row_no, bool alloc_if_null) { |
