fixed ui when horizontal

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