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
51
51
52
52
def expand ( [ h | t ] = expr ) do
53
53
cond do
54
- h === ?. ->
54
+ h === ?. and t != [ ] ->
55
55
expand_dot reduce ( t )
56
56
h === ?: ->
57
57
expand_erlang_modules
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ defmodule IEx.AutocompleteTest do
21
21
end
22
22
23
23
test :erlang_module_multiple_values_completion do
24
- { :yes , '' , list } = expand ( ':user' )
24
+ { :yes , '' , list } = expand ( ':user' )
25
25
assert length ( list ) > 1
26
26
end
27
27
@@ -35,6 +35,7 @@ defmodule IEx.AutocompleteTest do
35
35
end
36
36
37
37
test :elixir_no_completion do
38
+ assert expand ( '.' ) == { :no , '' , [ ] }
38
39
assert expand ( 'Xyz' ) == { :no , '' , [ ] }
39
40
end
40
41
@@ -48,7 +49,7 @@ defmodule IEx.AutocompleteTest do
48
49
end
49
50
50
51
test :elixir_submodule_no_completion do
51
- assert expand ( 'IEx.Xyz' ) == { :no , '' , [ ] }
52
+ assert expand ( 'IEx.Xyz' ) == { :no , '' , [ ] }
52
53
end
53
54
54
55
test :elixir_function_completion do
You can’t perform that action at this time.
0 commit comments