提交 9678d192 编写于 作者: S Serge Rider

#5232 SQL Editor: bracket auto-close strategy fix


Former-commit-id: 2f8bc1d4
上级 266e2952
......@@ -149,9 +149,19 @@ public class SQLSymbolInserter implements VerifyKeyListener, ILinkedModeListener
if (!closeBrackets) {
return;
}
try {
if (offset < document.getLength() && !Character.isWhitespace(document.getChar(offset + length))) {
return;
}
} catch (BadLocationException e) {
log.debug(e);
return;
}
/*
if (hasCharacterToTheRight(document, offset + length, event.character)) {
return;
}
*/
// fall through
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册