aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-06 09:53:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-06 09:53:27 +0000
commit3a9172342fd69c09d3fddfb26eba12dcbe1e5149 (patch)
tree8fc6ff4bb902a56f9148cfa9fba1c454a2c3f2be /terminal.h
parentMerge branch 'extend-selection-by-word' (diff)
selection: combine enum selection_kind with selection_semantic
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/terminal.h b/terminal.h
index a8bd5b0b..128694e7 100644
--- a/terminal.h
+++ b/terminal.h
@@ -180,8 +180,13 @@ enum mouse_reporting {
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
-enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
-enum selection_semantic { SELECTION_SEMANTIC_NONE, SELECTION_SEMANTIC_WORD, SELECTION_SEMANTIC_ROW};
+enum selection_kind {
+ SELECTION_NONE,
+ SELECTION_CHAR_WISE,
+ SELECTION_WORD_WISE,
+ SELECTION_LINE_WISE,
+ SELECTION_BLOCK
+};
enum selection_direction {SELECTION_UNDIR, SELECTION_LEFT, SELECTION_RIGHT};
enum selection_scroll_direction {SELECTION_SCROLL_NOT, SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN};
@@ -360,7 +365,6 @@ struct terminal {
struct {
enum selection_kind kind;
- enum selection_semantic semantic;
enum selection_direction direction;
struct coord start;
struct coord end;