Describe the bug
With a y-origin other than 0 and View.Highlight enabled, the cursor will be above the highlighted line. This means that if the cursor is moved with keybindings, the highlighted line will be off-screen before the cursor reaches the bottom of the screen and the view starts scrolling.
With a y-origin other than 0 and mouse enabled, the cursor will be above the mouse after receiving mouse events, including mouse movements.
These two bugs together cause the highlighted line to always be under the mouse.
To Reproduce
Create a new gui with Gui.Mouse and Gui.Cursor set to true
Create a view with View.Highlight and View.Editable set to true
Set View.Sel[BF]gColor to something more visible
Fill the view with some text
Setup keybinds to move the origin and the cursor
Run it, scroll the view down a bit and move the mouse, cursor, and enter text
Expected behavior
I expect the highlight from View.Highlight to line up with the cursor, and the cursor to be properly positioned at the mouse location when moved by mouse events.
Screenshots
Environment (please complete the following information):
OS: Manjaro
Version: Most recent commit (9bbecca11cb838f8214abb93044946ad2c526394)
Additional context
I've done some testing and can provide a pull request, assuming this is actually a bug and not me misunderstanding some concepts of gocui.
Describe the bug With a y-origin other than 0 and View.Highlight enabled, the cursor will be above the highlighted line. This means that if the cursor is moved with keybindings, the highlighted line will be off-screen before the cursor reaches the bottom of the screen and the view starts scrolling.
With a y-origin other than 0 and mouse enabled, the cursor will be above the mouse after receiving mouse events, including mouse movements.
These two bugs together cause the highlighted line to always be under the mouse.
To Reproduce
For your convenience, here's an example
Expected behavior I expect the highlight from View.Highlight to line up with the cursor, and the cursor to be properly positioned at the mouse location when moved by mouse events.
Screenshots
Environment (please complete the following information):
Additional context I've done some testing and can provide a pull request, assuming this is actually a bug and not me misunderstanding some concepts of gocui.