small cleanups

This commit is contained in:
Araq 2013-02-19 23:32:32 +01:00
commit 1342798cc7
2 changed files with 3 additions and 5 deletions

View file

@ -180,9 +180,7 @@ proc readLine*(s: PStream): TaintedString =
if c == '\c':
c = readChar(s)
break
if c == '\b':
result.string.setLen(result.len - 1)
elif c == '\L' or c == '\0':
if c == '\L' or c == '\0':
break
else:
result.string.add(c)