mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-07 08:44:55 +00:00
fix index error when there is a soft link file (https://github.com/MaskRay/ccls/issues/639)
This commit is contained in:
parent
c5acf62060
commit
fe14706742
@ -6,6 +6,7 @@
|
|||||||
#include "log.hh"
|
#include "log.hh"
|
||||||
|
|
||||||
#include <rapidjson/document.h>
|
#include <rapidjson/document.h>
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -120,6 +121,7 @@ std::string DocumentUri::getPath() const {
|
|||||||
#endif
|
#endif
|
||||||
if (g_config)
|
if (g_config)
|
||||||
normalizeFolder(ret);
|
normalizeFolder(ret);
|
||||||
|
ret = std::filesystem::canonical(ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user