Sublime Forum

[BUG] Awkward behavior of home key

#1

When pressing the “home” key (which by default performs “moveTo bol”), the cursor is placed on the first character of the line (disregarding whitespace at the beginning of the line).
Repeated pressing of the home key will move the cursor between the actual beginning of the line, and the first character as above.

The problem is, when moving the cursor down after pressing the “home” key, it will not be moved to the first non-whitespace character, but rather to the hard beginning of line.
This is very weird behavior, and is especially annoying when using ctrl+alt+down/up to multi-select several lines.
Also, after pressing home, if you move the cursor right, then left again, it now will be at the first non-whitespace character, and pressing down now will move the cursor in the way you’d expect. This means, of course, that there is no way to tell by looking at the cursor to where it will move when pressing down.

0 Likes

#2

I agree, this isn’t good behavior - I’ll fix it for the next beta.

0 Likes