mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-07 01:09:45 +02:00
Cleanup: rename a badly named function
We used the term "change line" to mean "a line that was added or deleted", but it sounded like a verb in the function name.
This commit is contained in:
@ -134,7 +134,7 @@ func (self *PatchBuildingController) toggleSelection() error {
|
||||
state := self.context().GetState()
|
||||
|
||||
// Get added/deleted lines in the selected patch range
|
||||
lineIndicesToToggle := state.ChangeLinesInSelectedPatchRange()
|
||||
lineIndicesToToggle := state.LineIndicesOfAddedOrDeletedLinesInSelectedPatchRange()
|
||||
if len(lineIndicesToToggle) == 0 {
|
||||
// Only context lines or header lines selected, so nothing to do
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user