diff --git a/src/clang_complete.cc b/src/clang_complete.cc index 9e54bfa8..f2408ec0 100644 --- a/src/clang_complete.cc +++ b/src/clang_complete.cc @@ -604,7 +604,7 @@ void DiagnosticQueryMain(ClangCompleteManager* completion_manager) { if (diagnostic && diagnostic->range.start.line >= 0) ls_diagnostics.push_back(*diagnostic); } - completion_manager->on_diagnostic_(session->file.filename, ls_diagnostics); + completion_manager->on_diagnostic_(path, ls_diagnostics); } }