jesseduffield / jesseduffield/lazygit

TAB Chars Wrong Size; Can't Fix

Open
#2,684 0 comments 3 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**
Hard TAB chars in files or diffs appearing in the main panel are hard-coded to expand modulo-4, and there is no config option to fix this.

**Expected behavior**
The correct default for expanding hard TABs is modulo-8. Modulo-4 is certainly very popular, but is by no means universally accepted. When deviating from the common default, provision should be made for the user to change it.

Problem line is here. This value needs to be configurable: https://github.com/jesseduffield/lazygit/blob/8e6967c70273f838e4e200a61bdb631015d46bdc/vendor/github.com/jesseduffield/gocui/view.go#L738

**Version info:**
_Run `lazygit --version` and paste the result here_
commit=5149b24ab3dfad3860e2300519c7c583dcc8c9ff, build date=2023-05-03T08:00:22Z, build source=binaryRelease, version=0.38.2, os=linux, arch=amd64, git version=2.40.1

_Run `git --version` and paste the result here_
git version 2.40.1

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.