Sublime Forum

Incorrect caret movement with 'Home' and 'End' key

#1

I am using ST4 4107 on Windows. When using Rust Enhanced, the caret moves incorrectly when pressing ‘Home’ and ‘End’ key.

The caret moves correctly when opening a file freshly. After saving the file to trigger rust check, pressing ‘Home’ and ‘End’ moves caret to one line above instead of end/begin of current line.

Video showing symptom: https://www.youtube.com/watch?v=teCojV0qi6o

Things I’ve tried:

  1. Delete settings/cache to start a fresh instance and only install Rust Enhanced. The problem persisted.
  2. Run sublime.active_window().active_view().run_command(‘move_to’, {‘to’: ‘eol’}) manually in command window. The highlighted line moves up, indicating the caret was moved to one line above.
0 Likes

#2

I just started having this problem as well. Were you able to figure out how to fix it? The syntax I am using is LaTeX, but the behavior is the same.

0 Likes

#3

Worse still, using the up arrow key sometimes jumps by two lines at a time.

0 Likes

#4

No, I never find a way to fix it. I had to disable Rust Enhanced at the end of the day.

0 Likes

#5

I reisntalled Rust Enhanced just now just to have a try and I can confirm my up arrow does that from time to time as well.

0 Likes

#6

Bizarre. I’ll try fiddling with my packages; maybe one of them is causing the bug since that what it is for you. Thanks for the reply! And if anyone else has ideas, I’d be very happy to hear them!!

0 Likes

#7

As a workaround, you can try to remap your home/end key to hardbol/hardeol, but no idea for up arrow.

0 Likes

#8

I have the same issue using LaTeX as well (LaTeXTools extension).

0 Likes