fixed ui when horizontal
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user