summaryrefslogtreecommitdiff
path: root/src/ranked_match.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-11-14 19:14:09 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-11-14 19:39:35 +0000
commit6d79ade01976ddca7d6bace2a22a92a599b9b991 (patch)
tree86c630ddff1999dd3ffa5c8e46a46251bafb4ccb /src/ranked_match.hh
parentb3ba769220aad0a3ac2a969d43c58396b3753aa7 (diff)
Tweak RankedMatch behaviour and fix bug in its comparison function
casting TestableFlag<T> to UnderlyingType<T> was going through bool conversion... Not sure how things worked earlier.
Diffstat (limited to 'src/ranked_match.hh')
-rw-r--r--src/ranked_match.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ranked_match.hh b/src/ranked_match.hh
index 183834a9..91169202 100644
--- a/src/ranked_match.hh
+++ b/src/ranked_match.hh
@@ -37,12 +37,12 @@ private:
{
None = 0,
// Order is important, the highest bit has precedence for comparison
- OnlyWordBoundary = 1 << 0,
- FirstCharMatch = 1 << 1,
- Prefix = 1 << 2,
- SingleWord = 1 << 3,
- Contiguous = 1 << 4,
- FullMatch = 1 << 5,
+ FirstCharMatch = 1 << 0,
+ SingleWord = 1 << 1,
+ Contiguous = 1 << 2,
+ OnlyWordBoundary = 1 << 3,
+ Prefix = 1 << 4,
+ FullMatch = 1 << 5,
};
StringView m_candidate;