Skip to content

Commit

Permalink
fix(themes): yarn nerdfont 3.x icon codepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Bajorek committed Oct 30, 2023
1 parent 9003be7 commit 450512d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/engine/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func TestEscapeGlyphs(t *testing.T) {
{Input: "\ufd03", Expected: "\\ufd03"},
{Input: "}", Expected: "}"},
{Input: "🏚", Expected: "🏚"},
{Input: "\U000F011B", Expected: "\\udb80\\udd1b"},
{Input: "󰄛", Expected: "\\udb80\\udd1b"},
}
for _, tc := range cases {
assert.Equal(t, tc.Expected, escapeGlyphs(tc.Input, false), tc.Input)
Expand Down
2 changes: 1 addition & 1 deletion src/segments/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (n *Node) loadContext() {
return
}
if n.language.env.HasFiles("yarn.lock") {
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\uF011B")
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\U000F011B")
return
}
if n.language.env.HasFiles("package-lock.json") || n.language.env.HasFiles("package.json") {
Expand Down
2 changes: 1 addition & 1 deletion themes/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@
"type": "string",
"title": "Yarn Icon",
"description": "Icon/text to use for Yarn",
"default": " \uF011B"
"default": " \udb80\udd1b"
},
"npm_icon": {
"type": "string",
Expand Down

0 comments on commit 450512d

Please sign in to comment.