diff options
-rw-r--r-- | core/src/main/kotlin/Locations/LocationService.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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, '/') |