File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,17 @@ defmodule IEx.Autocomplete do
188
188
end
189
189
190
190
defp modules_as_lists ( true ) do
191
- modules = [ "Elixir.Elixir" ] ++ modules_as_lists ( false )
192
- modules = if :code . get_mode ( ) === :interactive do
193
- modules ++ loaded_applications_as_lists
194
- end
195
- Enum . uniq ( modules )
191
+ [ "Elixir.Elixir" ] ++ modules_as_lists ( false )
196
192
end
197
193
198
194
defp modules_as_lists ( false ) do
199
- Enum . map ( :code . all_loaded , fn ( { m , _ } ) -> Atom . to_string ( m ) end )
195
+ modules = Enum . map ( :code . all_loaded , fn ( { m , _ } ) -> Atom . to_string ( m ) end )
196
+
197
+ if :code . get_mode ( ) === :interactive do
198
+ Enum . uniq ( modules ++ loaded_applications_as_lists ( ) )
199
+ else
200
+ modules
201
+ end
200
202
end
201
203
202
204
defp loaded_applications_as_lists do
You can’t perform that action at this time.
0 commit comments