@@ -35,8 +35,6 @@ public bool Render(Rect containingRect, Action<GitLogEntry> singleClick = null,
35
35
Action < GitLogEntry > doubleClick = null , Action < GitLogEntry > rightClick = null )
36
36
{
37
37
var requiresRepaint = false ;
38
- var rect = Rect . zero ;
39
-
40
38
scroll = GUILayout . BeginScrollView ( scroll ) ;
41
39
{
42
40
controlId = GUIUtility . GetControlID ( FocusType . Keyboard ) ;
@@ -54,7 +52,7 @@ public bool Render(Rect containingRect, Action<GitLogEntry> singleClick = null,
54
52
var startDisplay = scroll . y ;
55
53
var endDisplay = scroll . y + containingRect . height ;
56
54
57
- rect = new Rect ( containingRect . x , containingRect . y , containingRect . width , 0 ) ;
55
+ var rect = new Rect ( containingRect . x , containingRect . y , containingRect . width , 0 ) ;
58
56
59
57
for ( var index = 0 ; index < entries . Count ; index ++ )
60
58
{
@@ -68,15 +66,15 @@ public bool Render(Rect containingRect, Action<GitLogEntry> singleClick = null,
68
66
RenderEntry ( entryRect , entry , index ) ;
69
67
}
70
68
71
- var entryRequiresRepaint = HandleInput ( entryRect , entry , index , singleClick , doubleClick , rightClick ) ;
69
+ var entryRequiresRepaint =
70
+ HandleInput ( entryRect , entry , index , singleClick , doubleClick , rightClick ) ;
72
71
requiresRepaint = requiresRepaint || entryRequiresRepaint ;
73
72
74
73
rect . y += Styles . HistoryEntryHeight ;
75
74
}
76
- }
77
-
78
- GUILayout . Space ( rect . y - containingRect . y ) ;
79
75
76
+ GUILayout . Space ( rect . y - containingRect . y ) ;
77
+ }
80
78
GUILayout . EndScrollView ( ) ;
81
79
82
80
return requiresRepaint ;
0 commit comments