Fix infinite loop bug in Flux autocompletions

pull/4649/head
Christopher Henn 2018-10-25 09:40:01 -07:00 committed by Chris Henn
parent 3c95ca48d8
commit 50d881ac70
1 changed files with 2 additions and 2 deletions

View File

@ -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