Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
knz opened this issue Sep 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@knz
Copy link

knz commented Sep 3, 2022

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
Copy link
Author

knz commented Sep 3, 2022

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·␤
·!!·······␤
··········␤
⏩········🛇

@muesli muesli added the bug Something isn't working label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants