diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-20 12:42:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-21 17:09:26 +0000 |
| commit | 1a0de0017f7b2061bad0b695a98963ca0f274e21 (patch) | |
| tree | 1210c21e3f61d9a8165d8a34d0a25a6db4df514d /grid.h | |
| parent | changelog: pipe-* key bindings not being parsed correctly (diff) | |
grid: add grid_row_uri_range_erase()
This function handles erasing of an URI range. That is, a range of the
row is being either erased, or overwritten (from the URI perspective,
these two are the same thing).
We handle both partial overwrites (split up, or truncate URI), as well
as complete overwrites (remove URI).
Diffstat (limited to 'grid.h')
| -rw-r--r-- | grid.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -74,7 +74,8 @@ grid_row_in_view(struct grid *grid, int row_no) return row; } -void grid_row_add_uri_range(struct row *row, struct row_uri_range range); +void grid_row_uri_range_add(struct row *row, struct row_uri_range range); +void grid_row_uri_range_erase(struct row *row, int start, int end); static inline void grid_row_uri_range_destroy(struct row_uri_range *range) |
