Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Viewport motion no longer takes scrolloff into account #5178

Open
ismay opened this issue May 17, 2024 · 0 comments
Open

[BUG] Viewport motion no longer takes scrolloff into account #5178

ismay opened this issue May 17, 2024 · 0 comments
Labels

Comments

@ismay
Copy link

ismay commented May 17, 2024

Version of Kakoune

v2024.05.09

Reproducer

  • Set a scrolloff in kakrc, i.e.: set-option global scrolloff 5,5
  • Open a document that's longer than the viewport
  • Scroll down further than the scroll offset (say 10 lines)
  • Press vt

Outcome

The viewport will place the current line at the absolute top of the viewport, without taking the scroll offset into account (which it used to do before this version). So that means that if you press j after the above steps, the view will suddenly jump to apply the scroll offset.

Expectations

For the viewport motions (vt, vb, etc.) to take the scroll offset into account, as it used to do before the latest release.

Additional information

No response

@ismay ismay added the bug label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant