mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
focus mode: reduce a clip for line marker painting
we need that because of vcs annotations which use the whole range of the document
This commit is contained in:
+10
@@ -339,7 +339,17 @@ class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
|
||||
|
||||
try {
|
||||
paintAnnotations(g, startVisualLine, endVisualLine);
|
||||
|
||||
if (focusModeRange != null) {
|
||||
int startY = myEditor.visualLineToY(startVisualLine);
|
||||
int endY = myEditor.visualLineToY(endVisualLine);
|
||||
g.setClip(clip.x, startY, clip.width, endY - startY);
|
||||
}
|
||||
|
||||
paintLineMarkers(g, firstVisibleOffset, lastVisibleOffset, startVisualLine, endVisualLine);
|
||||
|
||||
g.setClip(clip);
|
||||
|
||||
paintFoldingLines(g, clip);
|
||||
paintFoldingTree(g, clip, firstVisibleOffset, lastVisibleOffset);
|
||||
paintLineNumbers(g, startVisualLine, endVisualLine);
|
||||
|
||||
Reference in New Issue
Block a user