Skip to content

Commit 1aeb7ae

Browse files
committed
Fix :io.columns calls
1 parent 7ba3c3c commit 1aeb7ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/iex/lib/iex.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ defmodule IEx do
338338
Get the width to be used on helpers with a maximum (and default) of 80 chars.
339339
"""
340340
def width do
341-
case :io.columns(:standard_input) do
341+
case :io.columns() do
342342
{:ok, width} -> min(width, 80)
343343
{:error, _} -> 80
344344
end

lib/mix/lib/mix/tasks/help.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ defmodule Mix.Tasks.Help do
9797
end
9898

9999
defp width() do
100-
case :io.columns(:standard_input) do
100+
case :io.columns() do
101101
{:ok, width} -> min(width, 80)
102102
{:error, _} -> 80
103103
end

0 commit comments

Comments
 (0)