-
Notifications
You must be signed in to change notification settings - Fork 40
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
Incorrect Sublime EOL and BOL cursor movement when Phantoms are present. #6098
Comments
Thanks for the issue, I thought I had a more general issue before really looking into this. The package |
@deathaxe why is this an enhancement and not a bug? This seems to be a bug to me. This does not seem like intended behavior at all. |
I'll clarify a bit more. I'd like to see this not languish as a "nice to have" as this affects people's workflow and causes frustration for the user, so much so, that they consider turning off plugins so they can just navigate code properly. |
Hello, Screencast.from.2023-08-18.12-57-03.webmPeople open issues or write on discord about how cursor moves unexpected around phantoms:
|
@deathaxe I have been able to reproduce this on multiple Windows systems even using a portable sublime with no plugins. This behavior has been isolated and reproduced. While you may not have been able to reproduce it, I would not discount this as multiple people have experienced it and I have reproduced it on multiple Windows systems. |
I think I've been in the community long enough to have some credibility here 🙂. |
I don't want to deny that, but as I also just set up a new vanilla portable ST4154 without any plugins beside ColorHelper, I wonder what's the difference or what else may be involved. |
As I mentioned, I just reproduced it on a portable Sublime with no plugins. Not even Package Control installed. I would flag it as a bug and let the Sublime team demote it it cannot be reproduced. I will note, and I should have noted this in the opening, work has me on Windows 10. I can update the opening post. I'd be interested to hear system info of others experiencing this. |
I tried to reproduce too and failed at first, but by reproducing my usual environment, I was able to find that I had to change the This is on a screen with 150% scale, Win10 (19045.3324). Default font is Consolas. Reproduced in 4143 too. 7dbdd1f2-d150-47ce-83c7-5d3f8bce1fac.webm(@deathaxe, may I ask what you used to record the screen with keystrokes?) |
That's an interesting find. I think I may be scaling at 150% on Windows as well. I'd have to check my font size, but that is interesting that it has an effect. |
Fixed in build 4161. |
Description of the bug
When an inline phantom is present, on platforms like Windows that use the
move_to
command to navigate to the EOL and BOL, the cursor does not move as expected.This seems to only affect Windows and maybe Linux (did not test). Mac does not seem to have a binding to jump to EOL and BOL using
move_to
on Mac as it does not have a home or end key. I guess Sublime let's mac manage the cursor behavior.Steps to reproduce
Create a new file.
Insert the following text:
Run the following commands to inject a phantom on the first line.
Place cursor on second line.
Press home key to navigate to the BOL.
Cursor will incorrectly jump to the start of the line with the phantom instead of the line it is on.
Cursor should appear here:
Expected behavior
See reproduction for expectation vs actual behavior.
Actual behavior
See reproduction for expectation vs actual behavior.
Sublime Text build number
4154
Operating system & version
Windows 10 Enterprise 21H2, maybe Linux (not an issue on Mac)
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
No response
The text was updated successfully, but these errors were encountered: