mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 01:24:52 +03:00
Minor code cleanup in insert_completer.cc
This commit is contained in:
parent
32b51e2cc3
commit
34d7bdbc01
@ -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<RankedMatchAndBuffer> matches;
|
||||
|
Loading…
Reference in New Issue
Block a user