mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-07 16:54:54 +00:00
completion: do not invalidate cache when adding new characters
This commit is contained in:
parent
396d0668af
commit
dc4d0f7748
@ -176,7 +176,7 @@ template <typename T> struct CompleteConsumerCache {
|
|||||||
Position position) {
|
Position position) {
|
||||||
std::lock_guard lock(mutex);
|
std::lock_guard lock(mutex);
|
||||||
return this->path == path && this->position == position &&
|
return this->path == path && this->position == position &&
|
||||||
this->line == line;
|
line.substr(0,position.character) == this->line.substr(0, position.character);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} // namespace ccls
|
} // namespace ccls
|
||||||
|
Loading…
Reference in New Issue
Block a user