1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Keep same selection range when quick-starting an interactive rebase

This is useful if you want to move a range of commits, so you select them, and
then realize it's better to do it in an interactive rebase. Pressing 'i'
preserves the range now.
This commit is contained in:
Stefan Haller
2024-01-19 08:35:54 +01:00
parent d28a2ec059
commit f9876c9742
3 changed files with 35 additions and 15 deletions

View File

@ -46,10 +46,9 @@ var QuickStartKeepSelectionRange = NewIntegrationTest(NewIntegrationTestArgs{
Contains("CI commit 06"),
Contains("update-ref").Contains("branch2"),
Contains("CI * commit 05"),
// Only 01 remains selected, but we want 04 through 01 to stay selected:
Contains("CI commit 04"),
Contains("update-ref").Contains("branch1"),
Contains("CI * commit 03"),
Contains("CI commit 04").IsSelected(),
Contains("update-ref").Contains("branch1").IsSelected(),
Contains("CI * commit 03").IsSelected(),
Contains("CI commit 02").IsSelected(),
Contains("CI <-- YOU ARE HERE --- commit 01"),
)