Skip to content

Pressing . to go to the next page skips multiple items #5017

Description

@aidancz

Describe the bug

Pressing . to go to the next page skips multiple items instead of moving one page forward.

To Reproduce

  1. Open LazyGit repo.
  2. Focus commit view and press _
  3. Press . twice to go forward a page.
  4. Notice several items are skipped.

Expected behavior

. should move down one page, not skip extra entries.

Screenshots

Image

press .:

Image

press .:

Image

these items are skipped:

Image

Version info

commit=v0.56.0, build date=2025-11-01T16:13:09Z, build source=binaryRelease, version=0.56.0, os=linux, arch=amd64, git version=2.51.2

Additional context

Also, the cursor behavior is a bit strange.
If it’s like Vim-style scrolling, I expect the cursor to stay on the first line.
If it’s like fzf-style scrolling, I expect the cursor to stay on the last line after the second page turn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions