@@ -97,7 +97,7 @@ func TestSidebar_HandleClickType(t *testing.T) {
9797
9898 // In vertical mode, the title line is at verticalStarY
9999 // Click on the star area (adjusted x = 0-2, so raw x = 1-3)
100- result := sb .HandleClickType (paddingLeft + 1 , verticalStarY )
100+ result , _ := sb .HandleClickType (paddingLeft + 1 , verticalStarY )
101101 assert .Equal (t , ClickStar , result , "click on star area should return ClickStar" )
102102
103103 // Set up a title with titleGenerated=true so ClickTitle can be returned
@@ -107,16 +107,16 @@ func TestSidebar_HandleClickType(t *testing.T) {
107107 // Click anywhere on the title area (after star) should return ClickTitle
108108 // Star "☆ " = 2 chars, so title area starts at position 2
109109 titleX := paddingLeft + 3 // middle of title
110- result = sb .HandleClickType (titleX , verticalStarY )
110+ result , _ = sb .HandleClickType (titleX , verticalStarY )
111111 assert .Equal (t , ClickTitle , result , "click on title area should return ClickTitle" )
112112
113113 // Click at the end (where pencil icon is) should also return ClickTitle
114114 pencilX := paddingLeft + 4
115- result = sb .HandleClickType (pencilX , verticalStarY )
115+ result , _ = sb .HandleClickType (pencilX , verticalStarY )
116116 assert .Equal (t , ClickTitle , result , "click on pencil icon area should return ClickTitle" )
117117
118118 // Click elsewhere (wrong y)
119- result = sb .HandleClickType (10 , 0 )
119+ result , _ = sb .HandleClickType (10 , 0 )
120120 assert .Equal (t , ClickNone , result , "click elsewhere should return ClickNone" )
121121}
122122
@@ -173,15 +173,15 @@ func TestSidebar_HandleClickType_WrappedTitle_Collapsed(t *testing.T) {
173173 assert .Greater (t , titleLines , 1 , "title should wrap to multiple lines" )
174174
175175 // Click on line 0 (first title line) after star should return ClickTitle
176- result := sb .HandleClickType (paddingLeft + 3 , 0 )
176+ result , _ := sb .HandleClickType (paddingLeft + 3 , 0 )
177177 assert .Equal (t , ClickTitle , result , "click on first title line should return ClickTitle" )
178178
179179 // Click on line 1 (wrapped title line) should also return ClickTitle
180- result = sb .HandleClickType (paddingLeft + 1 , 1 )
180+ result , _ = sb .HandleClickType (paddingLeft + 1 , 1 )
181181 assert .Equal (t , ClickTitle , result , "click on wrapped title line should return ClickTitle" )
182182
183183 // Star should still be clickable on line 0
184- result = sb .HandleClickType (paddingLeft + 1 , 0 )
184+ result , _ = sb .HandleClickType (paddingLeft + 1 , 0 )
185185 assert .Equal (t , ClickStar , result , "star should still be clickable on line 0" )
186186}
187187
@@ -211,15 +211,15 @@ func TestSidebar_HandleClickType_WrappedTitle_Vertical(t *testing.T) {
211211
212212 // In vertical mode, title starts at verticalStarY
213213 // Click on verticalStarY (first title line) after star should return ClickTitle
214- result := sb .HandleClickType (paddingLeft + 3 , verticalStarY )
214+ result , _ := sb .HandleClickType (paddingLeft + 3 , verticalStarY )
215215 assert .Equal (t , ClickTitle , result , "click on first title line should return ClickTitle" )
216216
217217 // Click on verticalStarY+1 (wrapped title line) should also return ClickTitle
218- result = sb .HandleClickType (paddingLeft + 1 , verticalStarY + 1 )
218+ result , _ = sb .HandleClickType (paddingLeft + 1 , verticalStarY + 1 )
219219 assert .Equal (t , ClickTitle , result , "click on wrapped title line should return ClickTitle" )
220220
221221 // Star should still be clickable on verticalStarY
222- result = sb .HandleClickType (paddingLeft + 1 , verticalStarY )
222+ result , _ = sb .HandleClickType (paddingLeft + 1 , verticalStarY )
223223 assert .Equal (t , ClickStar , result , "star should still be clickable on verticalStarY" )
224224}
225225
@@ -248,11 +248,11 @@ func TestSidebar_HandleClickType_NoWrap(t *testing.T) {
248248 assert .Equal (t , 1 , titleLines , "title should be on single line when it doesn't wrap" )
249249
250250 // Click on the title area should return ClickTitle
251- result := sb .HandleClickType (paddingLeft + 3 , verticalStarY )
251+ result , _ := sb .HandleClickType (paddingLeft + 3 , verticalStarY )
252252 assert .Equal (t , ClickTitle , result , "click on title should return ClickTitle" )
253253
254254 // Star should still be clickable
255- result = sb .HandleClickType (paddingLeft + 1 , verticalStarY )
255+ result , _ = sb .HandleClickType (paddingLeft + 1 , verticalStarY )
256256 assert .Equal (t , ClickStar , result , "star should still be clickable" )
257257}
258258
@@ -278,15 +278,15 @@ func TestSidebar_HandleClickType_WorkingDir_Vertical(t *testing.T) {
278278 wdY := verticalStarY + titleLines + 1
279279
280280 // Click on the working directory line
281- result := sb .HandleClickType (paddingLeft + 3 , wdY )
281+ result , _ := sb .HandleClickType (paddingLeft + 3 , wdY )
282282 assert .Equal (t , ClickWorkingDir , result , "click on working dir line should return ClickWorkingDir" )
283283
284284 // Click on the title line should still return ClickTitle
285- result = sb .HandleClickType (paddingLeft + 3 , verticalStarY )
285+ result , _ = sb .HandleClickType (paddingLeft + 3 , verticalStarY )
286286 assert .Equal (t , ClickTitle , result , "click on title should still return ClickTitle" )
287287
288288 // Click on the empty separator line should return ClickNone
289- result = sb .HandleClickType (paddingLeft + 3 , verticalStarY + titleLines )
289+ result , _ = sb .HandleClickType (paddingLeft + 3 , verticalStarY + titleLines )
290290 assert .Equal (t , ClickNone , result , "click on separator line should return ClickNone" )
291291}
292292
@@ -312,11 +312,11 @@ func TestSidebar_HandleClickType_WorkingDir_Collapsed(t *testing.T) {
312312 assert .Equal (t , 1 , titleLines , "title should be on single line" )
313313
314314 // Click on the working directory line (right after title)
315- result := sb .HandleClickType (paddingLeft + 3 , titleLines )
315+ result , _ := sb .HandleClickType (paddingLeft + 3 , titleLines )
316316 assert .Equal (t , ClickWorkingDir , result , "click on working dir line should return ClickWorkingDir" )
317317
318318 // Click on the title should still return ClickTitle
319- result = sb .HandleClickType (paddingLeft + 3 , 0 )
319+ result , _ = sb .HandleClickType (paddingLeft + 3 , 0 )
320320 assert .Equal (t , ClickTitle , result , "click on title should still return ClickTitle" )
321321}
322322
0 commit comments