aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-20 12:42:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-21 17:09:26 +0000
commit1a0de0017f7b2061bad0b695a98963ca0f274e21 (patch)
tree1210c21e3f61d9a8165d8a34d0a25a6db4df514d /grid.h
parentchangelog: 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/grid.h b/grid.h
index 3537ddb5..e2cd3a63 100644
--- a/grid.h
+++ b/grid.h
@@ -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)