search: make search-direction configurable

This commit is contained in:
Daniel Eklöf 2019-08-30 20:15:12 +02:00
parent 42714c51a9
commit 556bf95b28
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 24 additions and 7 deletions

View file

@ -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;