We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When using { to decrease diff context, the lowest values it goes to is 1. Git (and delta) supports 0.
{
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the size the be able to reach 0.
Screenshots Unnecessary.
Version info: Run lazygit --version and paste the result here
lazygit --version
commit=v0.44.1, build date=2024-09-18T13:19:48Z, build source=binaryRelease, version=0.44.1, os=linux, arch=amd64, git version=2.47.0
Run git --version and paste the result here
git --version
git version 2.47.0
Additional context N/A.
The text was updated successfully, but these errors were encountered:
Had a quick look at the code I believe this needs to be changed to 0:
lazygit/pkg/gui/controllers/context_lines_controller.go
Line 81 in 095eb13
Sorry, something went wrong.
Allow DiffContextSize to be decreased to zero (#4050)
b62546c
- **PR Description** Per #4012, the diff context size should be able to be decreased to zero. I update the type def for DiffContextSize to be an unsigned integer and add saturated add and subtraction in `context_lines_controller.go` where the variable is updated (++ or --) - **Please check if the PR fulfills these requirements** * [x] Cheatsheets are up-to-date (run `go generate ./...`) * [x] Code has been formatted (see [here](https://github.com/jesseduffield/lazygit/blob/master/CONTRIBUTING.md#code-formatting)) * [x] Tests have been added/updated (see [here](https://github.com/jesseduffield/lazygit/blob/master/pkg/integration/README.md) for the integration test guide) * [x] Text is internationalised (see [here](https://github.com/jesseduffield/lazygit/blob/master/CONTRIBUTING.md#internationalisation)) * [x] If a new UserConfig entry was added, make sure it can be hot-reloaded (see [here](https://github.com/jesseduffield/lazygit/blob/master/docs/dev/Codebase_Guide.md#using-userconfig)) * [x] Docs have been updated if necessary * [x] You've read through your own file changes for silly mistakes etc <!-- Be sure to name your PR with an imperative e.g. 'Add worktrees view' see https://github.com/jesseduffield/lazygit/releases/tag/v0.40.0 for examples -->
No branches or pull requests
Describe the bug
When using
{
to decrease diff context, the lowest values it goes to is 1. Git (and delta) supports 0.To Reproduce
Steps to reproduce the behavior:
{
Expected behavior
I expect the size the be able to reach 0.
Screenshots
Unnecessary.
Version info:
Run
lazygit --version
and paste the result hereRun
git --version
and paste the result hereAdditional context
N/A.
The text was updated successfully, but these errors were encountered: