dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.32k stars 358 forks source link

🐛 Borders displayed too long in environment with East Asian Ambiguous Width == 2 #1727

Open aoyama-val opened 1 week ago

aoyama-val commented 1 week ago

A lot of CJK environments assume that East Asian Ambiguous Width characters are double width, whereas Eastern enviroments single. In former, the borders are displayed with double width and wrapped.It would be preferrable if there was an option to treat those characters as double width or to use ASCII characters to draw borders.

To reproduce:

screenshot 2024-06-23 2 09 28

screenshot 2024-06-23 2 13 28