提交 c42c83ac 编写于 作者: S serge-rider

SQL autocomplete doesn't replace full word if cursor in inside it

上级 ce6f352c
......@@ -148,7 +148,12 @@ public class SQLCompletionProposal implements ICompletionProposal, ICompletionPr
}
}
replacementOffset = startOffset;
replacementLength = endOffset - startOffset;
if (curOffset < fullWord.length() && Character.isLetterOrDigit(fullWord.charAt(curOffset))) {
// Do not replace full word if we are in the middle of word
replacementLength = curOffset;
} else {
replacementLength = endOffset - startOffset;
}
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册