mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
selection: rename selection_cell_count -> min_bufsize_for_extraction
This commit is contained in:
parent
e6f0483294
commit
4c78b0203e
1 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ foreach_selected(
|
|||
}
|
||||
|
||||
static size_t
|
||||
selection_cell_count(const struct terminal *term)
|
||||
min_bufsize_for_extraction(const struct terminal *term)
|
||||
{
|
||||
const struct coord *start = &term->selection.start;
|
||||
const struct coord *end = &term->selection.end;
|
||||
|
|
@ -242,7 +242,7 @@ extract_one(struct terminal *term, struct row *row, struct cell *cell,
|
|||
static char *
|
||||
extract_selection(const struct terminal *term)
|
||||
{
|
||||
const size_t max_cells = selection_cell_count(term);
|
||||
const size_t max_cells = min_bufsize_for_extraction(term);
|
||||
const size_t buf_size = max_cells + 1;
|
||||
|
||||
struct extract ctx = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue