-
Notifications
You must be signed in to change notification settings - Fork 503
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: Cursor offset #2511
fix: Cursor offset #2511
Conversation
Use EditorState struct instead of passing parameters around
0f5f15e
to
2f184f1
Compare
I checked on this branch and it still occurs, but now its only 1 line off instead of 2 |
Hm strange, I just tested all top paddings from 0-20, and all of them work. Maybe this is some macOS specific issue? Maybe affected by the |
hmm.. i have spent tons of hours coding today so my mind is tired, but as a quick test i tried...
which i think are the defaults and i got the same effect these rae the current ones i use
|
i will eat some food and poke around |
I tried a bunch of different options and couldnt seem to make it budge ;/ any ideas of what i should check? |
Hm.. this PR is supposed to fix the case with the padding. It's broken on main for me and this fixes it. But I just noticed another bug, the offset gets wrong with splits. |
ughhh sorry about that, I was on main with the padding test. im confused now (just woke up) what i said originally is true though .. it does definitely occur on this branch as that much i have tested a bunch of times |
Ah, that gave me a clue. If I open a tabbar, then the offset gets wrong in the vertical direction. |
ah! yes I use a tabbar |
Ok, I will fix that, once I find the exact cause in the code. I'm sorry about this, I should have tested my changes better. I think I did when I originally wrote it, but there was so many code changes and refactoring after that, which probably broke it. |
Don't apologize you are the GOAT! You along with core team make everyones editing experience infinitely better and for that Im thankful every time I open Neovide. |
2f184f1
to
22f1df8
Compare
@9mm, I think it should be fixed now. |
works perfect now! |
I went ahead and merged this, since it's a pretty bad regression. |
What kind of change does this PR introduce?
Fixes a regression caused by fix: Determine the window under the mouse on the fly #2311. The absolute position of the mouse was returned instead of the relative one.
A small refactor to the mouse manager, pass a struct instead of individual parameters
Fixes Cursor is offset from click #2503
Did this PR introduce a breaking change?