Commit 1fda027d authored by Sergey Ignatov's avatar Sergey Ignatov
Browse files

focus mode: don't process gutter renderers which are not visible

parent ea6083fa
Showing with 8 additions and 0 deletions
+8 -0
......@@ -896,6 +896,14 @@ class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
if (myLineToGutterRenderers == null || myLineToGutterRenderersCacheForLogicalLines != logicalLinesMatchVisualOnes()) {
buildGutterRenderersCache();
}
Segment focusModeRange = myEditor.getFocusModeRange();
if (focusModeRange != null) {
int start = myEditor.offsetToVisualLine(focusModeRange.getStartOffset());
int end = myEditor.offsetToVisualLine(focusModeRange.getEndOffset());
if (line < start || line > end) return null;
}
return myLineToGutterRenderers.get(line);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment