diff options
author | pgen <p.gen.progs@gmail.com> | 2021-02-06 22:15:31 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2021-02-10 00:34:00 +0100 |
commit | 0baa84486e91beefb2d071e77247b674c1d43794 (patch) | |
tree | cdf233cef335a5a258ef83174ef8a1dfeed64f90 /smenu.h | |
parent | 29b697207b3256232a4775e80ae77ab745e8f68e (diff) |
A new search session is now forgetful by default
The old incremental search behaviour can still be used using the
new -is|-incremental_search parameter.
Diffstat (limited to 'smenu.h')
-rw-r--r-- | smenu.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -161,6 +161,8 @@ struct toggle_s * not and we do no want an automatic tagging * * when the users presses <ENTER> */ int visual_bell; /* 1 to flash the window, 0 to make a sound */ + int incremental_search; /* 1 makes the searching process incremental. * + * 0 keeps it forgetful. */ }; /* Structure to store the default or imposed smenu limits */ @@ -610,4 +612,10 @@ void init_main_ds(attrib_t * init_attr, win_t * win, limit_t * limits, ticker_t * timers, toggle_t * toggles, misc_t * misc, timeout_t * timeout, daccess_t * daccess); + +void +reset_search_buffer(win_t * win, search_data_t * search_data, ticker_t * timers, + toggle_t * toggles, term_t * term, daccess_t * daccess, + langinfo_t * langinfo, long last_line, char * tmp_word, + long word_real_max_size); #endif |