jsre: fix <tab><tab> completion magic

This commit is contained in:
Felix Lange
2016-02-20 14:58:06 +01:00
parent 5542b51b50
commit f08680985a
2 changed files with 17 additions and 4 deletions

View File

@ -40,7 +40,11 @@ func TestCompleteKeywords(t *testing.T) {
}{
{
input: "x",
want: []string{"x", "x."},
want: []string{"x."},
},
{
input: "x.someMethod",
want: []string{"x.someMethod("},
},
{
input: "x.",