diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-05 23:22:18 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-05 23:22:18 -0800 |
commit | b14683200a881b6b723d21289d05530131118a2d (patch) | |
tree | 3b7344445630ccf5cb996f2c187b4953bd12fa8a /history.cpp | |
parent | c82410bfda4111e01e8d31e5139df938814729d8 (diff) |
Change the history so that when you go forwards, it no longer highlights
Diffstat (limited to 'history.cpp')
-rw-r--r-- | history.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/history.cpp b/history.cpp index e59f2486..dd9489d8 100644 --- a/history.cpp +++ b/history.cpp @@ -385,6 +385,12 @@ void history_search_t::go_to_end(void) { prev_matches.clear(); } +/** Returns if we are at the end, which is where we start. */ +bool history_search_t::is_at_end(void) const { + return prev_matches.empty(); +} + + /** Goes to the beginning (backwards) */ void history_search_t::go_to_beginning(void) { /* Just go backwards as far as we can */ |