mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-05-22 10:15:43 +02:00
Add test for missing commits when range-copying after a paste
After a successful paste, the "X commits copied" indicator hides and DidPaste is set, but the buffer is not cleared. If the user then range-selects multiple commits and presses shift+C, every Add() call rebuilds the set via SelectedHashSet(), which returns empty while DidPaste is true; each iteration of the copy loop therefore overwrites the previous one and only the last commit in the range survives.
This commit is contained in:
@@ -97,6 +97,7 @@ var tests = []*components.IntegrationTest{
|
||||
cherry_pick.CherryPickDuringRebase,
|
||||
cherry_pick.CherryPickMerge,
|
||||
cherry_pick.CherryPickRange,
|
||||
cherry_pick.CherryPickRangeAfterPaste,
|
||||
commit.AddCoAuthor,
|
||||
commit.AddCoAuthorRange,
|
||||
commit.AddCoAuthorWhileCommitting,
|
||||
|
||||
Reference in New Issue
Block a user