Skip to content

Commit dec70e8

Browse files
authored
Merge pull request #2674 from CortexFoundation/dev
console: fix autocomplete digit range to include 0
2 parents 15b5f4a + 068a35c commit dec70e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console/console.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func (c *Console) AutoCompleteInput(line string, pos int) (string, []string, str
288288
for ; start > 0; start-- {
289289
// Skip all methods and namespaces (i.e. including the dot)
290290
c := line[start]
291-
if c == '.' || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '1' && c <= '9') {
291+
if c == '.' || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') {
292292
continue
293293
}
294294
// We've hit an unexpected character, autocomplete form here

0 commit comments

Comments
 (0)