aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-06 11:52:24 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-06 11:52:24 -0800
commit27f2859258921eadf6b6c7ecfc494079dd8e5e11 (patch)
tree23ca93387a260aad8117b2add858b3a22ac6bbc5 /history.h
parenteeed45da0f85c1738c8b7481781802850070f977 (diff)
Make history searching skip the autosuggestion
Diffstat (limited to 'history.h')
-rw-r--r--history.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/history.h b/history.h
index 8514fc36..b4fbb326 100644
--- a/history.h
+++ b/history.h
@@ -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);