When a phantom is at EOL and we tweak the width of the view by reducing ST's window size so that the phantom is wrapped into the "visual next line", you can't move the cursor to the next line by pressing ↓ key. The cursor will always be moved to the position before the phantom.
Steps to reproduce
Starts ST in safe mode.
Type ANYTHING and then press Enter to create an extra new line.
Run the following script in ST console to create an inline phantom at EOL of line 1.
Description of the bug
When a phantom is at EOL and we tweak the width of the view by reducing ST's window size so that the phantom is wrapped into the "visual next line", you can't move the cursor to the next line by pressing
↓
key. The cursor will always be moved to the position before the phantom.Steps to reproduce
Starts ST in safe mode.
Type
ANYTHING
and then pressEnter
to create an extra new line.Run the following script in ST console to create an inline phantom at EOL of line 1.
Reduce window size so that the phantom is wrapped into the visual next line.
Move the cursor to any position of line 1.
Try to move to line 2 by pressing the
↓
key and you will find you can't. Keep pressing↓
won't help.Expected behavior
The cursor can be moved to line 2.
Actual behavior
The cursor is stuck at the EOF of line 1 before the phantom.
Sublime Text build number
4183
Operating system & version
Win11 x64