diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-28 19:04:48 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-17 16:14:09 +0000 |
| commit | 1bc9fd5fe14a60db861fb317f731a5e27e857bf3 (patch) | |
| tree | 9190c0225df712a5d6aef516a552d660fe0bd9ae /terminal.c | |
| parent | selection: expose find_word_boundary_{left,right}() (diff) | |
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.
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
