mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Fix signature help for calls prefixed by a namespace
This commit is contained in:
parent
6ad60c4299
commit
b727fc5a36
@ -1616,9 +1616,6 @@ bool QueryDbMainLoop(
|
|||||||
if (file) {
|
if (file) {
|
||||||
lsPosition completion_position;
|
lsPosition completion_position;
|
||||||
search = file->FindClosestCallNameInBuffer(params.position, &active_param, &completion_position);
|
search = file->FindClosestCallNameInBuffer(params.position, &active_param, &completion_position);
|
||||||
// Move completion position back by one; completer will automatically increment it by one to deal with -> and . accesses.
|
|
||||||
if (completion_position.character > 0)
|
|
||||||
completion_position.character -= 1;
|
|
||||||
std::cerr << "[completion] Changing completion position from " << params.position.ToString() << " to " << completion_position.ToString() << std::endl;
|
std::cerr << "[completion] Changing completion position from " << params.position.ToString() << " to " << completion_position.ToString() << std::endl;
|
||||||
params.position = completion_position;
|
params.position = completion_position;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user