Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
1fda027d
Commit
1fda027d
authored
6 years ago
by
Sergey Ignatov
Browse files
Options
Download
Email Patches
Plain Diff
focus mode: don't process gutter renderers which are not visible
parent
ea6083fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java
+8
-0
...tellij/openapi/editor/impl/EditorGutterComponentImpl.java
with
8 additions
and
0 deletions
+8
-0
platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java
+
8
-
0
View file @
1fda027d
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment