1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-08 04:04:22 +02:00

Fix error message for selected lines

We had the actual and expected lines swapped around erroneously
This commit is contained in:
Jesse Duffield 2024-01-25 11:01:57 +11:00
parent 269ef7f250
commit 0402674ee7

View File

@ -265,8 +265,8 @@ func (self *ViewDriver) assertLines(offset int, matchers ...*TextMatcher) *ViewD
view.Name(),
formatLineRange(startIdx, endIdx),
formatLineRange(expectedStartIdx, expectedEndIdx),
strings.Join(lines, "\n"),
strings.Join(expectedSelectedLines, "\n"),
strings.Join(lines, "\n"),
)
})
}