aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-05 17:02:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-05 17:02:27 +0000
commitc62ce72778e2be00bea2c461f6bf8447d28708c7 (patch)
treebfedf8770ead1aec2ca17b8b4429f4a0e43b2f69 /selection.h
parentterm: re-order switch-cases to be in X button order (diff)
selection: mark-word using spaces only as word separator
When the user double-clicks with ctrl pressed, we now select the word under the cursor using spaces only as word separator.
Diffstat (limited to 'selection.h')
-rw-r--r--selection.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/selection.h b/selection.h
index 8473dbfa..9d712da1 100644
--- a/selection.h
+++ b/selection.h
@@ -1,5 +1,6 @@
#pragma once
+#include <stdbool.h>
#include <wayland-client.h>
#include "terminal.h"
@@ -11,7 +12,8 @@ void selection_start(struct terminal *term, int col, int row);
void selection_update(struct terminal *term, int col, int row);
void selection_finalize(struct terminal *term, uint32_t serial);
void selection_cancel(struct terminal *term);
-void selection_mark_word(struct terminal *term, int col, int row, uint32_t serial);
+void selection_mark_word(struct terminal *term, int col, int row,
+ bool spaces_only, uint32_t serial);
void selection_to_clipboard(struct terminal *term, uint32_t serial);
void selection_from_clipboard(struct terminal *term, uint32_t serial);