mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 08:04:20 +00:00
Convert TaintedString to string.
This commit is contained in:
@@ -176,7 +176,7 @@ else:
|
||||
discard close(fd)
|
||||
if w > 0: return w
|
||||
var s = getEnv("COLUMNS") #Try standard env var
|
||||
if len(s) > 0 and parseInt(s, w) > 0 and w > 0:
|
||||
if len(s) > 0 and parseInt(string(s), w) > 0 and w > 0:
|
||||
return w
|
||||
return 80 #Finally default to venerable value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user