aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-30 18:15:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-30 18:15:12 +0000
commit556bf95b2802fba5bc4e204a27ae9283d0cfcba5 (patch)
tree6b64837157b9fb95ae693f7b420b66c63106d86f /terminal.h
parentsearch: fix distance to prev word calculation when final cursor was 0 (diff)
search: make search-direction configurable
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index f5eabad1..f435ab3b 100644
--- a/terminal.h
+++ b/terminal.h
@@ -353,6 +353,7 @@ struct terminal {
size_t len;
size_t sz;
size_t cursor;
+ enum { SEARCH_BACKWARD, SEARCH_FORWARD} direction;
int original_view;
bool view_followed_offset;