Skip to content

Commit 9f879dd

Browse files
[IEx][Autocomplete] Fix crashing on autocompleting structs
1 parent 38f460e commit 9f879dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iex/lib/iex/autocomplete.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ defmodule IEx.Autocomplete do
362362
end)
363363

364364
entries =
365-
for {key, _value} <- pairs,
365+
for key when key != :__struct__ <- Map.keys(pairs),
366366
name = Atom.to_string(key),
367367
if(hint == "",
368368
do: not String.starts_with?(name, "_"),

0 commit comments

Comments
 (0)