jesseduffield / jesseduffield/lazygit

`log` missing some characters when highlighted

Open
#3,731 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**

The `log` appears to be missing characters when highlighted.

Here's the log before any of the problematic rows are highlighted (good):

image

Here's the log when the second row in the screenshot is highlighted (bad - missing `─` _after_ branch crossover):

image

Here's the log when the third row is highlighted (good):

image

Here's the log when the fourth row is highlighted (bad - missing `─` _before_ branch crossover):

image

**To Reproduce**
Steps to reproduce the behavior:

1. Make a branch like this:

```
│ ◯
│ │ ◯
◯─│─╯
◯ │
```

2. Scroll over lines

**Expected behavior**

I would expect no symbols before a row is highlighted to disappear on highlight, just the color or style of the lines should change. lazygit does change the symbols to connect the line to the parent, so the symbols do change in a manner that is useful.

However the change in some cases causes missing characters. It seems like an extra whitespace (i.e. ` `) is added somewhere.

**Version info:**

```shell
$ lazygit --version
commit=6fcb7eb8bb616c170506312870b3bf15f3dbe37c, build date=2024-05-19T10:15:28Z, build source=binaryRelease
, version=0.42.0, os=darwin, arch=arm64, git version=2.39.3 (Apple Git-146)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.