Skip to content

Commit

Permalink
Fix deprecated indexing of open call in windows displaysize
Browse files Browse the repository at this point in the history
missed from #12807, only happens when running in mintty
  • Loading branch information
tkelman committed May 14, 2017
1 parent 9b428dc commit cba1906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function displaysize(io::TTY)
if ispty(io)
# io is actually a libuv pipe but a cygwin/msys2 pty
try
h, w = map(x -> parse(Int, x), split(readstring(open(Base.Cmd(String["stty", "size"]), "r", io)[1])))
h, w = parse.(Int, split(readstring(open(Base.Cmd(String["stty", "size"]), "r", io).out)))
h > 0 || (h = default_size[1])
w > 0 || (w = default_size[2])
return h, w
Expand Down

0 comments on commit cba1906

Please sign in to comment.