Skip to content

Horizontal padding breaks when displaying diffs containing multi-codepoint glyphs #2409

Description

@simon-abbott

Describe the bug
When displaying a diff containing a multi-codepoint glyphs (like emoji with skin tones, for example) the horizontal padding is improperly calculated.

To Reproduce
Steps to reproduce the behavior:

  1. Commit some file
  2. Make a change that involves a line with a multi-codepoint glyph
  3. View the diff in lazygit
  4. See error

Expected behavior
The horizontal padding should be calculated correctly, even when displaying multi-codepoint glyphs

Screenshots
If applicable, add screenshots to help explain your problem.

Version info:
Lazygit version: commit=, build date=, build source=homebrew, version=0.36.0, os=darwin, arch=amd64, git version=2.37.1 (Apple Git-137.1)
Git version: git version 2.37.1 (Apple Git-137.1)

Additional context
Add any other context about the problem here.

Note: please try updating to the latest version or manually building the latest master to see if the issue still occurs.

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