File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ defmodule IEx.Autocomplete do
5151
5252 def expand ( [ h | t ] = expr ) do
5353 cond do
54- h === ?. ->
54+ h === ?. and t != [ ] ->
5555 expand_dot reduce ( t )
5656 h === ?: ->
5757 expand_erlang_modules
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ defmodule IEx.AutocompleteTest do
2121 end
2222
2323 test :erlang_module_multiple_values_completion do
24- { :yes , '' , list } = expand ( ':user' )
24+ { :yes , '' , list } = expand ( ':user' )
2525 assert length ( list ) > 1
2626 end
2727
@@ -35,6 +35,7 @@ defmodule IEx.AutocompleteTest do
3535 end
3636
3737 test :elixir_no_completion do
38+ assert expand ( '.' ) == { :no , '' , [ ] }
3839 assert expand ( 'Xyz' ) == { :no , '' , [ ] }
3940 end
4041
@@ -48,7 +49,7 @@ defmodule IEx.AutocompleteTest do
4849 end
4950
5051 test :elixir_submodule_no_completion do
51- assert expand ( 'IEx.Xyz' ) == { :no , '' , [ ] }
52+ assert expand ( 'IEx.Xyz' ) == { :no , '' , [ ] }
5253 end
5354
5455 test :elixir_function_completion do
You can’t perform that action at this time.
0 commit comments