mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Fix textDocument/definition on #include lines
This commit is contained in:
parent
6746883a3b
commit
b5761b5980
@ -637,6 +637,7 @@ CXIdxClientFile OnIndexIncludedFile(CXClientData client_data,
|
||||
CXFile cx_file;
|
||||
unsigned int line;
|
||||
clang_getSpellingLocation(hash_loc, &cx_file, &line, nullptr, nullptr);
|
||||
line--;
|
||||
|
||||
IndexFile* db = ConsumeFile(param, cx_file);
|
||||
if (!db)
|
||||
|
Loading…
Reference in New Issue
Block a user