diff --git a/ui/src/flux/helpers/autoComplete.ts b/ui/src/flux/helpers/autoComplete.ts index 72b2619cc..316810fe2 100644 --- a/ui/src/flux/helpers/autoComplete.ts +++ b/ui/src/flux/helpers/autoComplete.ts @@ -152,8 +152,8 @@ const shouldCompleteParam = (currentLineText, cursorPosition) => { let i = cursorPosition while (i) { - const char = currentLineText[i] - const charBefore = currentLineText[i - 1] + const char = currentLineText[i - 1] + const charBefore = currentLineText[i - 2] if (char === ':' || char === '>' || char === ')') { return false