Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/iex/lib/iex/autocomplete.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule IEx.Autocomplete do

def expand([h|t]=expr) do
cond do
h === ?. ->
h === ?. and t != []->
expand_dot reduce(t)
h === ?: ->
expand_erlang_modules
Expand Down
5 changes: 3 additions & 2 deletions lib/iex/test/iex/autocomplete_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule IEx.AutocompleteTest do
end

test :erlang_module_multiple_values_completion do
{:yes, '', list} = expand(':user')
{:yes, '', list} = expand(':user')
assert length(list) > 1
end

Expand All @@ -35,6 +35,7 @@ defmodule IEx.AutocompleteTest do
end

test :elixir_no_completion do
assert expand('.') == {:no, '', []}
assert expand('Xyz') == {:no, '', []}
end

Expand All @@ -48,7 +49,7 @@ defmodule IEx.AutocompleteTest do
end

test :elixir_submodule_no_completion do
assert expand('IEx.Xyz') == {:no, '', []}
assert expand('IEx.Xyz') == {:no, '', []}
end

test :elixir_function_completion do
Expand Down