mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -05:00
extract: add extract_finish_wide(), and optionally skip stripping trailing empty cells
extract_finish() returns the extracted text in UTF-8, while
extract_finish_wide() returns the extracted text in Unicode.
This patch also adds a new argument to extract_finish{,_wide},
that when set to true, skips stripping trailing empty cells.
This commit is contained in:
parent
eab874eb06
commit
1bc9fd5fe1
4 changed files with 55 additions and 13 deletions
|
|
@ -224,7 +224,7 @@ selection_to_text(const struct terminal *term)
|
|||
&extract_one_const_wrapper, ctx);
|
||||
|
||||
char *text;
|
||||
return extract_finish(ctx, &text, NULL) ? text : NULL;
|
||||
return extract_finish(ctx, true, &text, NULL) ? text : NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue