diff --git a/kittens/choose_files/scan.go b/kittens/choose_files/scan.go index 056932953..fd6e7a2bd 100644 --- a/kittens/choose_files/scan.go +++ b/kittens/choose_files/scan.go @@ -133,6 +133,7 @@ type sortable_dir_entry struct { buf [unix.NAME_MAX + 1]byte } +// lowercase a string into a pre-existing byte buffer with speedups for ASCII func as_lower(s string, output []byte) int { limit := min(len(s), len(output)) found_non_ascii := false