IDEA-93466 Cannot always jump to matching bracket

This commit is contained in:
Denis.Zhdanov
2012-11-01 18:20:29 +04:00
parent 38b0244d7c
commit 7b9d7694f0
@@ -100,7 +100,7 @@ public class CodeBlockUtil {
}
else {
final IndentGuideDescriptor guide = editor.getIndentsModel().getCaretIndentGuide();
if (guide != null) {
if (guide != null && guide.startLine != editor.getCaretModel().getLogicalPosition().line) {
editor.getCaretModel().moveToLogicalPosition(new LogicalPosition(guide.startLine, guide.indentLevel));
}
else {