@@ -53,7 +53,7 @@ func NewPatchExplorerContext(
5353 func (selectedLineIdx int ) error {
5454 ctx .GetMutex ().Lock ()
5555 defer ctx .GetMutex ().Unlock ()
56- ctx .NavigateTo (ctx . c . Context (). IsCurrent ( ctx ), selectedLineIdx )
56+ ctx .NavigateTo (selectedLineIdx )
5757 return nil
5858 }),
5959 )
@@ -79,15 +79,15 @@ func (self *PatchExplorerContext) GetIncludedLineIndices() []int {
7979 return self .getIncludedLineIndices ()
8080}
8181
82- func (self * PatchExplorerContext ) RenderAndFocus (isFocused bool ) {
83- self .setContent (isFocused )
82+ func (self * PatchExplorerContext ) RenderAndFocus () {
83+ self .setContent ()
8484
8585 self .FocusSelection ()
8686 self .c .Render ()
8787}
8888
89- func (self * PatchExplorerContext ) Render (isFocused bool ) {
90- self .setContent (isFocused )
89+ func (self * PatchExplorerContext ) Render () {
90+ self .setContent ()
9191
9292 self .c .Render ()
9393}
@@ -97,8 +97,8 @@ func (self *PatchExplorerContext) Focus() {
9797 self .c .Render ()
9898}
9999
100- func (self * PatchExplorerContext ) setContent (isFocused bool ) {
101- self .GetView ().SetContent (self .GetContentToRender (isFocused ))
100+ func (self * PatchExplorerContext ) setContent () {
101+ self .GetView ().SetContent (self .GetContentToRender ())
102102}
103103
104104func (self * PatchExplorerContext ) FocusSelection () {
@@ -119,19 +119,19 @@ func (self *PatchExplorerContext) FocusSelection() {
119119 view .SetCursorY (endIdx - newOriginY )
120120}
121121
122- func (self * PatchExplorerContext ) GetContentToRender (isFocused bool ) string {
122+ func (self * PatchExplorerContext ) GetContentToRender () string {
123123 if self .GetState () == nil {
124124 return ""
125125 }
126126
127- return self .GetState ().RenderForLineIndices (isFocused , self .GetIncludedLineIndices ())
127+ return self .GetState ().RenderForLineIndices (self .GetIncludedLineIndices ())
128128}
129129
130- func (self * PatchExplorerContext ) NavigateTo (isFocused bool , selectedLineIdx int ) {
130+ func (self * PatchExplorerContext ) NavigateTo (selectedLineIdx int ) {
131131 self .GetState ().SetLineSelectMode ()
132132 self .GetState ().SelectLine (selectedLineIdx )
133133
134- self .RenderAndFocus (isFocused )
134+ self .RenderAndFocus ()
135135}
136136
137137func (self * PatchExplorerContext ) GetMutex () * deadlock.Mutex {
0 commit comments