diff --git a/src/insert_completer.cc b/src/insert_completer.cc index 08ff5071..808a08a2 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -98,11 +98,10 @@ InsertCompletion complete_word(const Buffer& buffer, ByteCoord cursor_pos) RankedMatchAndBuffer(const RankedMatch& m, const Buffer* b = nullptr) : RankedMatch{m}, buffer{b} {} + using RankedMatch::operator==; + using RankedMatch::operator<; bool operator==(StringView other) const { return candidate() == other; } - bool operator==(const RankedMatchAndBuffer& other) const { return RankedMatch::operator==(other); } - bool operator<(const RankedMatchAndBuffer& other) const { return RankedMatch::operator<(other);; } - const Buffer* buffer; }; Vector matches;