-
Notifications
You must be signed in to change notification settings - Fork 99
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
Mouse misbehavior in v0.3.1 #90
Comments
|
Funny, the first time I ran it I got some form of crash, starting with:
I seem to be getting these randomly once in a while, and if I try to start GRV again it runs fine. (So far this only happened in a specific repo, it may be specific to it.) Attached is the crash log file and then the scroll log file: |
Issue (1) should now be resolved on master, after editing a commit the mouse should continue to work. Thanks for providing the logs. Could you try scrolling up and down a couple of times again using the latest code from master to see if it works now? If not could you attach the logs again please. |
I would, but I couldn't build using a temporary build environment (I don't have a Go setup). Is there any chance you could pre-release a binary? Here is my console output from the build failure in case that's an easier fix. I suspect that there are non-Go dependencies the build script is trying to compile. |
Yeah sure, here is a static binary of the latest master: grv.txt (md5: I had to add a |
Success! Scrolling works pretty much as expected. :) Just FYI, coming from Tmux I instinctively expected the view hovered by the mouse to scroll, but in fact the currently active view is the one which scrolls. I can definitely get used to that (i.e. by clicking before scrolling), but I thought I should mention this difference in case you think it's of interest. |
Thanks for testing the scrolling, I'm glad it works. I think scrolling the view the mouse is hovered over is a nice idea. I had a look into making this change but ran into issues with ncurses getting it to work. At the moment ncurses returns a failure when we call |
This may be related to #63, not sure. I notice two possibly related incorrect behaviors regarding mouse support in v0.3.1:
After editing a commit in Vim (which has terminal mouse support) with the
C
command in Status View, I can no longer click anywhere in GRV but the keyboard still works. Quitting and restarting GRV restores normal behavior. I suspect that something about mouse support isn't reset after coming back from an external command.If I use GRV in a straight X terminal (Qterminal, KiTTY, etc.), with
:set mouse false
the scroll wheel scrolls through commits as though arrows were used. The same in Tmux scrolls up to Tmux's scrollback buffer as expected. When I setmouse
however, the scroll wheel does nothing in both terminals. Given the existence ofmouse-scroll-rows
I assume that the scroll wheel should be supported, so this seems to be a bug.If you need help duplicating this, let me know. Maybe something in my setup is atypical…
The text was updated successfully, but these errors were encountered: