aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-30 12:40:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-17 16:14:10 +0000
commita6d9f01c0d1d914362b73eacd89e1e09877632cb (patch)
tree044a331241b6534f00cad1ace1941d13313cbdfd /selection.c
parentsearch: find_next(): correctly wrap row number (diff)
extract: move ‘strip_trailing_empty’ parameter from extra_finish() to extract_begin()
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/selection.c b/selection.c
index 7316dfc3..f684c2fa 100644
--- a/selection.c
+++ b/selection.c
@@ -215,7 +215,7 @@ selection_to_text(const struct terminal *term)
if (term->selection.end.row == -1)
return NULL;
- struct extraction_context *ctx = extract_begin(term->selection.kind);
+ struct extraction_context *ctx = extract_begin(term->selection.kind, true);
if (ctx == NULL)
return NULL;
@@ -224,7 +224,7 @@ selection_to_text(const struct terminal *term)
&extract_one_const_wrapper, ctx);
char *text;
- return extract_finish(ctx, true, &text, NULL) ? text : NULL;
+ return extract_finish(ctx, &text, NULL) ? text : NULL;
}
void