aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-28 19:03:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-17 16:14:09 +0000
commiteab874eb06de11763683f312e6c1557319788cee (patch)
treebc1f3140fc420564c9b3812807d4a1e73a98dca1 /selection.h
parentsearch: find_next(): proper check for scrollback wrap around (diff)
selection: expose find_word_boundary_{left,right}()
Diffstat (limited to 'selection.h')
-rw-r--r--selection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/selection.h b/selection.h
index 241ec262..295d8d1c 100644
--- a/selection.h
+++ b/selection.h
@@ -74,3 +74,8 @@ void selection_start_scroll_timer(
struct terminal *term, int interval_ns,
enum selection_scroll_direction direction, int col);
void selection_stop_scroll_timer(struct terminal *term);
+
+void selection_find_word_boundary_left(
+ struct terminal *term, struct coord *pos, bool spaces_only);
+void selection_find_word_boundary_right(
+ struct terminal *term, struct coord *pos, bool spaces_only);