Skip to content

Windows Emojis (win + .) break views and previews #2702

@MarcoBuess

Description

@MarcoBuess

Describe the bug
Using windows emojis in documents tracked by git cause rendering issues.

To Reproduce

  1. Open a git directory
  2. Create or edit a file and add windows emojis (win + .) to it.
  3. Open lazygit and observe rendered window frames especially in the Unstaged Changes preview

Expected behavior
Should be rendered as usual.

Screenshots
image

Version info:
Run lazygit --version and paste the result here

$ lazygit --version
commit=5149b24ab3dfad3860e2300519c7c583dcc8c9ff, build date=2023-05-03T08:00:22Z, build source=binaryRelease, version=0.38.2, os=windows, arch=amd64, git version=2.40.1.windows.1

Run git --version and paste the result here

$ git --version
git version 2.40.1.windows.1

PowerShell and Win Version

$ $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Windows Terminal Version
image

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