Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
fix: index in search dedupe Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQAbLldkjKzcl4YMgYhzGIIHSCjPCPkWw19BwMCRWziTEqQEm/G4NrYTalEB0qK6nYe OT22AWvL1sEr+Tiv/aggc= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
3 months ago
2 changed files, 2 additions(+), 2 deletions(-)
M internal/html/repo_search.templ -> internal/html/repo_search.templ
diff --git a/internal/html/repo_search.templ b/internal/html/repo_search.templ
index 0dccff2e85870166f8fa3d3734dd04dc12a49e47..0995b2d77c2a53d678ce6582aefee63c04a3b7ce 100644
--- a/internal/html/repo_search.templ
+++ b/internal/html/repo_search.templ
@@ -17,7 +17,7 @@ 	)
 	var idx int
 	for _, result := range s.Results {
 		if result.File == currentFile {
-			results[idx] = append(results[idx], result)
+			results[idx-1] = append(results[idx-1], result)
 			continue
 		}
 		results = append(results, []git.GrepResult{result})
M internal/html/repo_search_templ.go -> internal/html/repo_search_templ.go
diff --git a/internal/html/repo_search_templ.go b/internal/html/repo_search_templ.go
index 3e33b3e191a86926e04dccb173534b1c81b4f8d0..d23a9754fc2cae7c71128a82539b2a8a7bba53c1 100644
--- a/internal/html/repo_search_templ.go
+++ b/internal/html/repo_search_templ.go
@@ -27,7 +27,7 @@ 	)
 	var idx int
 	for _, result := range s.Results {
 		if result.File == currentFile {
-
+import "fmt"
 //lint:file-ignore SA4006 This context is only used if a nested component is present.
 			continue
 		}