aboutsummaryrefslogtreecommitdiff
path: root/search.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 /search.c
parentsearch: find_next(): correctly wrap row number (diff)
extract: move ‘strip_trailing_empty’ parameter from extra_finish() to extract_begin()
Diffstat (limited to 'search.c')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index cce205d4..e7d03fe1 100644
--- a/search.c
+++ b/search.c
@@ -473,7 +473,7 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only)
struct coord pos = old_end;
row = term->grid->rows[pos.row];
- struct extraction_context *ctx = extract_begin(SELECTION_NONE);
+ struct extraction_context *ctx = extract_begin(SELECTION_NONE, false);
if (ctx == NULL)
return;
@@ -487,7 +487,7 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only)
wchar_t *new_text;
size_t new_len;
- if (!extract_finish_wide(ctx, false, &new_text, &new_len))
+ if (!extract_finish_wide(ctx, &new_text, &new_len))
return;
if (!search_ensure_size(term, term->search.len + new_len))