mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-11 05:33:55 -04:00
extract: move ‘strip_trailing_empty’ parameter from extra_finish() to extract_begin()
This commit is contained in:
parent
0945e71572
commit
a6d9f01c0d
6 changed files with 32 additions and 19 deletions
|
|
@ -2900,7 +2900,7 @@ static bool
|
|||
rows_to_text(const struct terminal *term, int start, int end,
|
||||
char **text, size_t *len)
|
||||
{
|
||||
struct extraction_context *ctx = extract_begin(SELECTION_NONE);
|
||||
struct extraction_context *ctx = extract_begin(SELECTION_NONE, true);
|
||||
if (ctx == NULL)
|
||||
return false;
|
||||
|
||||
|
|
@ -2917,7 +2917,7 @@ rows_to_text(const struct terminal *term, int start, int end,
|
|||
}
|
||||
|
||||
out:
|
||||
return extract_finish(ctx, true, text, len);
|
||||
return extract_finish(ctx, text, len);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue