mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-10 23:57:43 +02:00
Fix typo in comment
This commit is contained in:
parent
ebdfd8046a
commit
4a4afc4639
@ -10,7 +10,7 @@ func calculateOrigin(currentOrigin int, bufferHeight int, firstLineIdx int, last
|
|||||||
|
|
||||||
// we want to scroll our origin so that the index we need to see is in view
|
// we want to scroll our origin so that the index we need to see is in view
|
||||||
// and the other index we want to see (e.g. the other side of a line range)
|
// and the other index we want to see (e.g. the other side of a line range)
|
||||||
// is in as close to being in view as possible.
|
// is as close to being in view as possible.
|
||||||
func calculateNewOriginWithNeededAndWantedIdx(currentOrigin int, bufferHeight int, needToSeeIdx int, wantToSeeIdx int) int {
|
func calculateNewOriginWithNeededAndWantedIdx(currentOrigin int, bufferHeight int, needToSeeIdx int, wantToSeeIdx int) int {
|
||||||
origin := currentOrigin
|
origin := currentOrigin
|
||||||
if needToSeeIdx < currentOrigin {
|
if needToSeeIdx < currentOrigin {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user