mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-15 21:14:35 +02:00
run modernize
This commit is contained in:
@@ -137,7 +137,7 @@ func get_shell_name(argv0 string) (ans string) {
|
||||
func rc_modification_allowed(ksi string) (allowed bool, set_ksi_env_var bool) {
|
||||
allowed = ksi != ""
|
||||
set_ksi_env_var = true
|
||||
for _, x := range strings.Split(ksi, " ") {
|
||||
for x := range strings.SplitSeq(ksi, " ") {
|
||||
switch x {
|
||||
case "disabled":
|
||||
allowed = false
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user