From 85c02893823a81fa3dac967ab7413e48cd6d22b9 Mon Sep 17 00:00:00 2001 From: Dmitry Neverov Date: Wed, 21 Jun 2017 06:19:48 +0200 Subject: Fix link in the last breadcrumbs item --- core/src/main/kotlin/Locations/LocationService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin') diff --git a/core/src/main/kotlin/Locations/LocationService.kt b/core/src/main/kotlin/Locations/LocationService.kt index 39f5942c..a51ef8d4 100644 --- a/core/src/main/kotlin/Locations/LocationService.kt +++ b/core/src/main/kotlin/Locations/LocationService.kt @@ -24,7 +24,7 @@ data class FileLocation(val file: File): Location { throw IllegalArgumentException("$other is not a FileLocation") } if (file.path.substringBeforeLast(".") == other.file.path.substringBeforeLast(".") && anchor == null) { - return "." + return "./${file.name}" } val ownerFolder = file.parentFile!! val relativePath = ownerFolder.toPath().relativize(other.file.toPath()).toString().replace(File.separatorChar, '/') -- cgit