Scrollbar is not updated on wildmenu
When opening the menu, the scrollbar is not updated when reaching items outside the initial range.
How to reproduce:
- Start gnvim
- Type
:<Tab>, the menu should open - Type
<Tab>until the end of the list is reached or drag the scrollbar on the right - Notice the list is scrolled but scrollbar is pinned to the top
This happens on both external commandline and wildmenu. This does not occur on popupmenu.
If you have any pointers I'd be happy to try and fix this.
Cant reproduce. Which gtk version are you using?
I was able to reproduce it, using the latest gnvim. Not sure about gtk though. Do you mean the crate or a package?
I mean the gtk version installed on your system.
I am using gtk version 3.24.8
I found a similar case with Geany: https://gitlab.gnome.org/GNOME/gtk/issues/615
Gtk: 3.24.8
What's more strange is that this is not the case in the popupmenu: it scrolls just as expected. I tried moving around some of the code in wildmenu.rs to resemble that of the popupmenu, but I couldn't get the wildmenu's scrollbar to move; it remained motionless.
I would be interested to know if vhakulinen's gtk version is different?
I'm currently running ubuntu 16.04 (gtk version 3.18) and don't (currently) have access to machine with newer OS. I'll try to find some time and spin up a VM.
(I've noticed some inconsistencies with the scroll bars on different versions of gtk and its been PITA).
This is a minor issue atm., nothing that impedes workflow.
Just noticed that the horizontal scrollbar in the wildmenu doesn't move either when dragged. To reproduce, type out a long command in the wildmenu and move the scrollbar at the bottom of the wildmenu: has the same behavior as the vertical scrollbar - it doesn't move.
Gnvim was rewritten from ground up for gtk4. If the problem persists, feel free to reopen this issue.