From e4af0fcb6dc2e6d90a89708a1cae0edbeb0b30e4 Mon Sep 17 00:00:00 2001 From: Jörg Wollenschläger Date: Sat, 15 Sep 2018 20:22:04 +0900 Subject: Allow subpaths of names of length 1 --- compiler/pathutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/pathutils.nim') diff --git a/compiler/pathutils.nim b/compiler/pathutils.nim index ef0fa4abd..03fcfe07e 100644 --- a/compiler/pathutils.nim +++ b/compiler/pathutils.nim @@ -114,7 +114,7 @@ proc canon(x: string; result: var string; state: var int) = if d > 0: setLen(result, d-1) elif isDot(x, b): discard "discard the dot" - elif b[1] > b[0]: + elif b[1] >= b[0]: if result.len > 0 and result[^1] != DirSep: result.add DirSep result.add substr(x, b[0], b[1]) -- cgit 1.4.1-2-gfad0