lipgloss icon indicating copy to clipboard operation
lipgloss copied to clipboard

Border top-right and bottom-right doesn't render properly when using a wide rune

Open knz opened this issue 3 years ago โ€ข 1 comments

When I use a wide rune (e.g. "โฉ") as a top-right or bottom-right corner, the resulting edge is wider than the other lines.

This should be corrected by padding the other lines.

See this example:

Screenshot_2022-09-03_23-29-20

Found while working on #109.

cc @meowgorithm

knz avatar Sep 03 '22 21:09 knz

Interestingly, the issue does not happen if it's the bottom-left or top-left rune that's wide. For example:

set
border: border("","","","","โฉ","","","")
----
โฉยทยทยทยทยทยทยทยทโค
ยทhelloยทยทยทยทโค
ยทuniverseยทโค
ยท!!ยทยทยทยทยทยทยทโค
ยทยทยทยทยทยทยทยทยทยทโค
ยทยทยทยทยทยทยทยทยทยท๐Ÿ›‡

set
border: border("","","","","","","","โฉ")
----
ยทยทยทยทยทยทยทยทยทยทโค
ยทhelloยทยทยทยทโค
ยทuniverseยทโค
ยท!!ยทยทยทยทยทยทยทโค
ยทยทยทยทยทยทยทยทยทยทโค
โฉยทยทยทยทยทยทยทยท๐Ÿ›‡

knz avatar Sep 03 '22 21:09 knz