mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 05:56:03 +01:00
SourceAccessor: insert colon after prefix
This allows clever editors/IDEs to discern the path more easily for Ctrl+Click navigate to functionality, e.g. when building .?ref=HEAD
This commit is contained in:
parent
ee6a764988
commit
5def18e53b
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ void SourceAccessor::setPathDisplay(std::string displayPrefix, std::string displ
|
|||
|
||||
std::string SourceAccessor::showPath(const CanonPath & path)
|
||||
{
|
||||
return displayPrefix + path.abs() + displaySuffix;
|
||||
return displayPrefix + (displayPrefix.empty() ? "" : ":") + path.rel() + displaySuffix;
|
||||
}
|
||||
|
||||
CanonPath SourceAccessor::resolveSymlinks(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue