mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
parent
3ab670520b
commit
90dacce1d1
|
@ -316,7 +316,7 @@ func escapeGlyphs(s string, migrate bool) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
if migrate {
|
if migrate {
|
||||||
if val, OK := cp[int(r)]; OK {
|
if val, OK := cp[uint64(r)]; OK {
|
||||||
r = rune(val)
|
r = rune(val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||||
)
|
)
|
||||||
|
|
||||||
type codePoints map[int]int
|
type codePoints map[uint64]uint64
|
||||||
|
|
||||||
func getGlyphCodePoints() (codePoints, error) {
|
func getGlyphCodePoints() (codePoints, error) {
|
||||||
var codePoints = make(codePoints)
|
var codePoints = make(codePoints)
|
||||||
|
@ -47,7 +47,8 @@ func getGlyphCodePoints() (codePoints, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
codePoints[int(oldGlyph)] = int(newGlyph)
|
codePoints[oldGlyph] = newGlyph
|
||||||
}
|
}
|
||||||
|
|
||||||
return codePoints, nil
|
return codePoints, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue