mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 11:01:57 +00:00
Make update delta work a bit better. Still buggy though.
This commit is contained in:
parent
74d67b0eb5
commit
57da6a81ab
@ -64,7 +64,9 @@ bool Position::operator==(const Position& that) const {
|
||||
bool Position::operator!=(const Position& that) const { return !(*this == that); }
|
||||
|
||||
bool Position::operator<(const Position& that) const {
|
||||
return line < that.line && column < that.column;
|
||||
if (line < that.line)
|
||||
return true;
|
||||
return line == that.line && column < that.column;
|
||||
}
|
||||
|
||||
Range::Range() {}
|
||||
|
@ -110,7 +110,9 @@ struct QueryFuncRef {
|
||||
}
|
||||
bool operator!=(const QueryFuncRef& that) const { return !(*this == that); }
|
||||
bool operator<(const QueryFuncRef& that) const {
|
||||
return id_ < that.id_ && loc.range.start < that.loc.range.start;
|
||||
if (id_ < that.id_)
|
||||
return true;
|
||||
return id_ == that.id_ && loc.range.start < that.loc.range.start;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user