提交 c21f7443 编写于 作者: S Serge Rider 提交者: GitHub

Merge pull request #9477 from dbeaver/proposal#9101

#9101 autocomplete fixed

Former-commit-id: 8e8541a6
......@@ -25,7 +25,7 @@ public class SmartTextContentAdapter extends TextContentAdapter {
String contentsUC = contents.toUpperCase();
for (int i = selection.x - 1; i >= 0; i--) {
String prefix = curValue.substring(i, selection.x);
if (i > 0 && contentsUC.startsWith(prefix)) {
if (i == 0 && contentsUC.startsWith(prefix)) {
text.setSelection(i, selection.x);
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册