From 1bc9fd5fe14a60db861fb317f731a5e27e857bf3 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 28 Mar 2021 21:04:48 +0200 Subject: 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. --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 4a39b659..c2bcf86f 100644 --- a/terminal.c +++ b/terminal.c @@ -2917,7 +2917,7 @@ rows_to_text(const struct terminal *term, int start, int end, } out: - return extract_finish(ctx, text, len); + return extract_finish(ctx, true, text, len); } bool -- cgit v1.3