small cleanups
This commit is contained in:
parent
4fc575bc26
commit
1342798cc7
2 changed files with 3 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue