mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
fix(image): exclude U+e0b6 from double width
This commit is contained in:
parent
5ca802f95e
commit
502558efa5
|
@ -326,6 +326,11 @@ var doubleWidthRunes = []RuneRange{
|
|||
// e.g. for characters that are 2 or more wide. A standard character will return 0
|
||||
// Nerd Font glyphs will return 1, since most are double width
|
||||
func (ir *ImageRenderer) runeAdditionalWidth(r rune) int {
|
||||
// exclude the round leading diamond
|
||||
if r == '\ue0b6' {
|
||||
return 0
|
||||
}
|
||||
|
||||
for _, runeRange := range doubleWidthRunes {
|
||||
if runeRange.Start <= r && r <= runeRange.End {
|
||||
return 1
|
||||
|
|
Loading…
Reference in a new issue