mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
less code
This commit is contained in:
+2
-4
@@ -472,7 +472,7 @@ public class BraceHighlightingHandler {
|
||||
if (lBrace != null && rBrace !=null) {
|
||||
final int startLine = myEditor.offsetToLogicalPosition(lBrace.getStartOffset()).line;
|
||||
final int endLine = myEditor.offsetToLogicalPosition(rBrace.getEndOffset()).line;
|
||||
if (endLine - startLine >= 0) {
|
||||
if (endLine - startLine > 0) {
|
||||
final Runnable runnable = () -> {
|
||||
if (myProject.isDisposed() || myEditor.isDisposed()) return;
|
||||
Color color = attributes.getBackgroundColor();
|
||||
@@ -489,9 +489,7 @@ public class BraceHighlightingHandler {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!myCodeInsightSettings.HIGHLIGHT_SCOPE) {
|
||||
removeLineMarkers();
|
||||
}
|
||||
removeLineMarkers();
|
||||
}
|
||||
|
||||
if (!scopeHighlighting) {
|
||||
|
||||
Reference in New Issue
Block a user