Skip to content

DEFAULT_REMOTE_ICON uses wrong code #4652

@bedlamzd

Description

@bedlamzd

Describe the bug
Default remote icon is displayed incorrectly due to wrong code format. The character used is \uf02a with literal 2 added at the end.

If I understand correctly, this is because actual character code (\uf02a2) is longer then 4 hex digits, which makes it render as 2. For proper display \U000f02a2 code should be used.

To Reproduce
Have nerd fonts enabled?

mkdir lzg-test && cd lzg-test
git init
git remote add test https://example.com

Open lazygit and navigate to remotes pane, see the wrong icon 2

Expected behavior
According to this line the icon should be \U000f02a2 󰊢

Image

Screenshots

Image

Version info:
commit=v0.51.1, build date=2025-05-23T11:46:20Z, build source=binaryRelease, version=0.51.1, os=linux, arch=amd64, git version=2.49.0
git version 2.49.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions