diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-06 11:52:24 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-06 11:52:24 -0800 |
commit | 27f2859258921eadf6b6c7ecfc494079dd8e5e11 (patch) | |
tree | 23ca93387a260aad8117b2add858b3a22ac6bbc5 /history.h | |
parent | eeed45da0f85c1738c8b7481781802850070f977 (diff) |
Make history searching skip the autosuggestion
Diffstat (limited to 'history.h')
-rw-r--r-- | history.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -12,6 +12,7 @@ #include <deque> #include <utility> #include <tr1/memory> +#include <set> using std::tr1::shared_ptr; enum history_search_type_t { @@ -126,9 +127,17 @@ class history_search_t { /** The search term */ wcstring term; - + + /** Additional strings to skip (sorted) */ + wcstring_list_t external_skips; + + bool should_skip_match(const wcstring &str) const; + public: + /** Sets additional string matches to skip */ + void skip_matches(const wcstring_list_t &skips); + /** Finds the next search term (forwards in time). Returns true if one was found. */ bool go_forwards(void); |