fixed ui when horizontal

This commit is contained in:
2024-10-01 16:37:54 +02:00
parent 27530fe8cc
commit f77c04c908
+2
View File
@@ -24,10 +24,12 @@ func RenderLine(frameLine, line_ string, x int, fm *map[int]string, lm *map[int]
delete(*fm, i) delete(*fm, i)
} }
if v, ok := (*lm)[i-x]; ok { if v, ok := (*lm)[i-x]; ok {
if i-x > 0 {
delete(*lm, i-x) delete(*lm, i-x)
(*lm)[i] = v (*lm)[i] = v
} }
} }
}
return string(frame) return string(frame)
} }