gitui-org / gitui-org/gitui

`line_break` in `theme.ron` is interpreted incorrectly

Open
#2,312 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Line-breaks colour is rendered verbatim, as the HEX colour.

**To Reproduce**
Add the following to your `theme.ron`

```ron
(
line_break: Some("#005e8b")
)
```

**Expected behavior**
Hunks in `gitui` are exactly the same as in the `git diff` and files on disk.

**Screenshots**
![image](https://github.com/user-attachments/assets/4719679d-31a2-48cf-aa56-38bd638ecf10)

![image](https://github.com/user-attachments/assets/b529d8d2-5220-4e33-b666-205916ad1c6d)

**Context (please complete the following information):**
- OS/Distro + Version: Debian 12
- GitUI Version: nightly 2024-06-28 (95e1d4d) as well as the release build from https://github.com/extrawurst/gitui/commit/4ef633a75a3581936d0da9aade7af8ed7aad98ab
- Rust version: rustc 1.76.0 (07dca489a 2024-02-04)

**Additional context**
The `005e8b` string is not a git commit hash, e.g. `git show 005e8b` returns nil.

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.