run modernize

This commit is contained in:
Kovid Goyal
2025-11-11 17:09:37 +05:30
parent 1faf786bd2
commit 6f588a0c29
30 changed files with 46 additions and 60 deletions

View File

@@ -110,7 +110,7 @@ func PathToTerminfoDb(term string) (ans string) {
return ans
}
if td := os.Getenv("TERMINFO_DIRS"); td != "" {
for _, q := range strings.Split(td, string(os.PathListSeparator)) {
for q := range strings.SplitSeq(td, string(os.PathListSeparator)) {
if q == "" {
q = "/usr/share/terminfo"
}