@@ -35,8 +35,6 @@ public bool Render(Rect containingRect, Action<GitLogEntry> singleClick = null,
3535 Action < GitLogEntry > doubleClick = null , Action < GitLogEntry > rightClick = null )
3636 {
3737 var requiresRepaint = false ;
38- var rect = Rect . zero ;
39-
4038 scroll = GUILayout . BeginScrollView ( scroll ) ;
4139 {
4240 controlId = GUIUtility . GetControlID ( FocusType . Keyboard ) ;
@@ -54,7 +52,7 @@ public bool Render(Rect containingRect, Action<GitLogEntry> singleClick = null,
5452 var startDisplay = scroll . y ;
5553 var endDisplay = scroll . y + containingRect . height ;
5654
57- rect = new Rect ( containingRect . x , containingRect . y , containingRect . width , 0 ) ;
55+ var rect = new Rect ( containingRect . x , containingRect . y , containingRect . width , 0 ) ;
5856
5957 for ( var index = 0 ; index < entries . Count ; index ++ )
6058 {
@@ -68,15 +66,15 @@ public bool Render(Rect containingRect, Action<GitLogEntry> singleClick = null,
6866 RenderEntry ( entryRect , entry , index ) ;
6967 }
7068
71- var entryRequiresRepaint = HandleInput ( entryRect , entry , index , singleClick , doubleClick , rightClick ) ;
69+ var entryRequiresRepaint =
70+ HandleInput ( entryRect , entry , index , singleClick , doubleClick , rightClick ) ;
7271 requiresRepaint = requiresRepaint || entryRequiresRepaint ;
7372
7473 rect . y += Styles . HistoryEntryHeight ;
7574 }
76- }
77-
78- GUILayout . Space ( rect . y - containingRect . y ) ;
7975
76+ GUILayout . Space ( rect . y - containingRect . y ) ;
77+ }
8078 GUILayout . EndScrollView ( ) ;
8179
8280 return requiresRepaint ;
0 commit comments