aboutsummaryrefslogtreecommitdiff
path: root/extract.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-17 16:20:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-17 16:20:12 +0000
commit3da8dc123f998113109e80912588fff0a9fbef92 (patch)
treea1614644f672834da37177777583d5639ee2861b /extract.h
parentMerge branch 'box-drawing-use-pixman' (diff)
parentchangelog: ctrl+w can now be used across lines (diff)
Merge branch 'search-refactor-extend-word'
Closes #421
Diffstat (limited to 'extract.h')
-rw-r--r--extract.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/extract.h b/extract.h
index 0b3693d2..dc802bc5 100644
--- a/extract.h
+++ b/extract.h
@@ -2,12 +2,14 @@
#include <stddef.h>
#include <stdbool.h>
+#include <wchar.h>
#include "terminal.h"
struct extraction_context;
-struct extraction_context *extract_begin(enum selection_kind kind);
+struct extraction_context *extract_begin(
+ enum selection_kind kind, bool strip_trailing_empty);
bool extract_one(
const struct terminal *term, const struct row *row, const struct cell *cell,
@@ -15,3 +17,5 @@ bool extract_one(
bool extract_finish(
struct extraction_context *context, char **text, size_t *len);
+bool extract_finish_wide(
+ struct extraction_context *context, wchar_t **text, size_t *len);