diff options
| author | José Valim <jose.valim@plataformatec.com.br> | 2018-12-23 12:02:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-23 12:02:08 +0100 |
| commit | 93dfb4af3d46c00970cc157fbd229420cb57bee5 (patch) | |
| tree | 0b9233b5323914d047bc80e6ff38612b021c5554 | |
| parent | 43910518f9381cf553a2505a7dfecdbff59f73fc (diff) | |
| download | elixir-jv-iex-eof.tar.gz | |
Update server.exjv-iex-eof
| -rw-r--r-- | lib/iex/lib/iex/server.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/iex/lib/iex/server.ex b/lib/iex/lib/iex/server.ex index a1ea20066..a177f4341 100644 --- a/lib/iex/lib/iex/server.ex +++ b/lib/iex/lib/iex/server.ex @@ -2,7 +2,7 @@ defmodule IEx.State do @moduledoc false # This state is exchanged between IEx.Server and # IEx.Evaluator which is why it is a struct. - defstruct cache: '', counter: 1, prefix: "iex", on_eof: :halt + defstruct cache: '', counter: 1, prefix: "iex", on_eof: :stop_evaluator @type t :: %__MODULE__{} end @@ -288,7 +288,7 @@ defmodule IEx.Server do defp iex_state(opts) do prefix = Keyword.get(opts, :prefix, "iex") - on_eof = Keyword.get(opts, :on_eof, :halt) + on_eof = Keyword.get(opts, :on_eof, :stop_evaluator) %IEx.State{prefix: prefix, on_eof: on_eof} end |
