summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorClay Sweetser <clay.sweetser@gmail.com>2014-07-29 21:31:46 -0400
committerClay Sweetser <clay.sweetser@gmail.com>2014-07-29 21:31:46 -0400
commit9b4b4bcbc5b6464da31b75ab6bf529066bf8315d (patch)
tree70fc03ee78b007cdbb8d83a2b790133b998915c7 /compiler
parent6a09fc358e5e799fdf5c0f79774d475d2fb02e6f (diff)
downloadNim-9b4b4bcbc5b6464da31b75ab6bf529066bf8315d.tar.gz
Clean up more
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index ee2f2a7f7..4fec420f7 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -294,8 +294,8 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
     echo repr(options.searchPaths)
     lists.excludePath(options.searchPaths, path)
     lists.excludePath(options.lazyPaths, path)
-    if (len(path) > 0) and (path[len(path) - 1] == DirSep)::
-      let strippedPath = removeTrailingDirSep(path)
+    if (len(path) > 0) and (path[len(path) - 1] == DirSep):
+      let strippedPath = path[0 .. (len(path) - 2)]
       lists.excludePath(options.searchPaths, strippedPath)
       lists.excludePath(options.lazyPaths, strippedPath)
     echo repr(options.searchPaths)