1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +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:
Stefan Haller
2025-07-04 19:40:43 +02:00
parent 9f23b89e90
commit a6001dc76e
2 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ func (s *State) SelectedPatchRange() (int, int) {
}
// Returns the line indices of the selected patch range that are changes (i.e. additions or deletions)
func (s *State) ChangeLinesInSelectedPatchRange() []int {
func (s *State) LineIndicesOfAddedOrDeletedLinesInSelectedPatchRange() []int {
viewStart, viewEnd := s.SelectedViewRange()
patchStart, patchEnd := s.patchLineIndices[viewStart], s.patchLineIndices[viewEnd]
lines := s.patch.Lines()