-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix: revert 2debe82 #94
Conversation
@willothy scrollbar should be updated only on WinScrolled now |
@willothy Could you send the file |
it's just a huge list of Lazy plugins, I can paste it here if you need but you could recreate the same effect by copy-pasting a bunch of plugin entries. return {
{ -- copy paste this a bunch
"fake plugin"
}
} |
So I guess the bug appears when the number of buffer lines exceed some threshold? Could you share how many entries are there in your menu? |
I don't think that WinScrolled autocmd is executing very often as it's marked Buffer local... it works fine when not buffer local. You're right that it's only happening at certain heights, but I can't figure out what the threshold is. There are 29 entries in that file. I can reproduce by selecting from the top-level symbols in |
Emm.. Cannot reproduce with 100 menu entries :( scrollbar.mp4 |
Strange, what version of Neovim are you using? I'm on the latest nightly |
@willothy Nightly but not the latest version
|
Is that before or after this PR? This PR affected the way topline is restored when setting buf lines, and broke scrolling for some plugins. Testing this now. Edit: nope, that's not the issue. |
Is updating on |
Technically not a problem... But you know, we want to reduce unnecessary calls and make the code clean. I'll test with the lastet nightly version of neovim later. |
For sure, sounds good. I originally tried this same thing when implementing the scrollbar but ran into this issue, that's why I had the call in |
fixes Bekaboo#93
1b74ce0
to
be7d379
Compare
@willothy Still cannot reproduce with minimal config with the latest neovim version: scrollbar_repro_clean.mp4Could you try reproducing it using |
Yes, I can reproduce with 2023-09-27.14-13-00.mp4Sometimes the cursor scrolls down properly, but doesn't scroll up as well. The timing of |
fixes #93