diff options
Diffstat (limited to 'compiler/options.nim')
-rwxr-xr-x | compiler/options.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index 9dec04475..b4ee8cf67 100755 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -138,19 +138,19 @@ proc shortenDir(dir: string): string = # returns the interesting part of a dir var prefix = getPrefixDir() & dirSep if startsWith(dir, prefix): - return copy(dir, len(prefix)) + return substr(dir, len(prefix)) prefix = getCurrentDir() & dirSep if startsWith(dir, prefix): - return copy(dir, len(prefix)) + return substr(dir, len(prefix)) prefix = projectPath & dirSep #writeln(output, prefix); #writeln(output, dir); if startsWith(dir, prefix): - return copy(dir, len(prefix)) + return substr(dir, len(prefix)) result = dir proc removeTrailingDirSep*(path: string): string = if (len(path) > 0) and (path[len(path) - 1] == dirSep): - result = copy(path, 0, len(path) - 2) + result = substr(path, 0, len(path) - 2) else: result = path |