提交 e27dfc84 编写于 作者: A Anastasiya Volkova

#10281 replace if there is a special character in front of the intended column name

上级 4fc475fc
......@@ -47,7 +47,7 @@ public class ResultSetFilterContentAdapter extends StyledTextContentAdapter {
for (int i = selection.x - 1; i >= 0; i--) {
String prefix = curValue.substring(i, selection.x);
if (contentsUC.startsWith(prefix)) {
if (i == 0 || curValue.substring(i - 1, selection.x).startsWith(" ")) {
if (i == 0 || !Character.isJavaIdentifierPart(curValue.charAt(i - 1))) {
text.setSelection(i, selection.x);
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册