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 val, OK := cp[int(r)]; OK {
|
||||
if val, OK := cp[uint64(r)]; OK {
|
||||
r = rune(val)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
)
|
||||
|
||||
type codePoints map[int]int
|
||||
type codePoints map[uint64]uint64
|
||||
|
||||
func getGlyphCodePoints() (codePoints, error) {
|
||||
var codePoints = make(codePoints)
|
||||
|
@ -47,7 +47,8 @@ func getGlyphCodePoints() (codePoints, error) {
|
|||
if err != nil {
|
||||
continue
|
||||
}
|
||||
codePoints[int(oldGlyph)] = int(newGlyph)
|
||||
codePoints[oldGlyph] = newGlyph
|
||||
}
|
||||
|
||||
return codePoints, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue