Skip to content

Commit

Permalink
Merge pull request #136 from fox0430/fix#135
Browse files Browse the repository at this point in the history
Ex mode: Bugfix #135
  • Loading branch information
fox0430 authored Jan 26, 2019
2 parents 6f5d7fe + c55d48c commit 4d2f0f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/moepkg/fileutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ proc normalizePath*(path: seq[Rune]): seq[Rune] =
if path[0] == ru'~':
result = getHomeDir().toRunes
result.add(path[1..path.high])
elif path == ru"./":
return path
elif path.len > 1 and path[0 .. 1] == ru"./":
return path[2 .. path.high]
else:
Expand Down

0 comments on commit 4d2f0f8

Please sign in to comment.