jesseduffield.lazygit/pkg/integration/tests
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
..
bisect Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
branch Fix resetting or rebasing a branch to its upstream when the upstream branch name is different 2025-01-04 15:48:26 +01:00
cherry_pick Allow pasting commits more than once 2024-10-13 16:55:54 +02:00
commit Allow to switch branches in Commit View 2025-01-01 14:55:12 +01:00
config Fix loading customCommands from per-repo config file 2024-08-24 11:01:25 +02:00
conflicts Fix ForEachLineInFile to not lose the last line if it doesn't end with a LF 2024-10-09 15:37:08 +02:00
custom_commands Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
demo Fix typos 2025-01-03 10:50:36 +11:00
diff Add a simple integration test for non-sticky range diff 2024-08-28 19:51:15 +02:00
file Ask to auto-stage unstaged files when continuing a rebase after resolving conflicts 2024-09-02 18:24:36 +02:00
filter_and_search [DATALAD RUNCMD] run codespell throughout fixing typos automagically 2024-08-27 18:03:00 +02:00
filter_by_author Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
filter_by_path Keep the same commit selected when exiting filtering mode 2024-03-28 12:23:46 +01:00
interactive_rebase Fix moving a commit across a branch boundary in a stack 2024-12-23 12:18:48 +01:00
misc [DATALAD RUNCMD] run codespell throughout fixing typos automagically 2024-08-27 18:03:00 +02:00
patch_building Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
reflog Allow to switch branches in Commit View 2025-01-01 14:55:12 +01:00
shared Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
shell_commands Rename "Custom Command" to "Shell Command" 2024-08-17 10:56:03 +02:00
staging add test case for decreasing Diff Context length to zero 2024-11-19 08:21:19 +11:00
stash Bump gocui 2025-01-07 17:34:30 +01:00
status Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
submodule Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
sync Fix typos 2025-01-03 10:50:36 +11:00
tag Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
ui Fix typos 2025-01-03 10:50:36 +11:00
undo Support range select in rebase actions 2024-01-23 17:23:56 +11:00
worktree Fix typos 2025-01-03 10:50:36 +11:00
test_list.go Add a test demonstrating the problem 2025-01-07 17:46:51 +01:00
test_list_generator.go Fix typos 2025-01-03 10:50:36 +11:00
tests.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00