feat: Warns the user if they exceed 16 context frames.

This commit is contained in:
Spencer Brower
2026-07-28 15:41:44 -04:00
parent f1c7d02bc1
commit 6d7b88a8d6
5 changed files with 240 additions and 152 deletions
+1 -4
View File
@@ -153,10 +153,7 @@ suggest_correction :: proc(available: []string, missing: string) -> string {
if len(available) == 0 || len(missing) == 0 {
return ""
}
threshold := 2
if len(missing) > 8 {
threshold = len(missing) / 4
}
threshold := max(2, len(missing) / 3)
best: string
best_dist := threshold + 1