jesseduffield.lazygit/pkg/commands
Stefan Haller 64cd7cd9f6 Adjust line number for working copy when editing a line
There are two ways to jump to the editor on a specific line: pressing `e` in the
staging or patch building panels, or clicking on a hyperlink in a delta diff. In
both cases, this works perfectly in the unstaged changes view, but in other
views (either staged changes, or an older commit) it can often jump to the wrong
line; this happens when there are further changes to the file being viewed in
later commits or in unstaged changes.

This commit fixes this so that you end up on the right line in these cases.
2025-01-07 17:46:51 +01:00
..
git_commands Combine GetPathDiff and GetAllDiff into one command (GetDiff) 2025-01-07 17:46:51 +01:00
git_config Use print instead of printf when there are no arguments 2024-08-27 10:33:06 +02:00
hosting_service Allow on prem Azure DevOps Server pull request 2025-01-02 15:10:02 +11:00
models Add user config gui.showNumstatInFilesView 2024-12-08 12:09:47 +01:00
oscommands Fix typos 2025-01-03 10:50:36 +11:00
patch Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
git.go Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
git_cmd_obj_builder.go Use an interactive shell for running custom commands 2024-08-17 10:32:18 +02:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00