Sublime Forum

Unexpected BOL cursor behavior with word wrap

#1

Hi,

On ST 2.0 build 2210 (sorry, haven’t upgraded yet), when the cursor is on the second character of a wrapped line and you then press the left cursor key, the cursor skips beyond the first character of a wrapped line and moves to the end of the previous line.

Example (| indicates cursor position):

[code]This is a
w|rapped line

Cursor left key:

This is a |
wrapped line[/code]
I would expect the cursor to appear in front of the ‘w’. When I press delete it correctly deletes the ‘w’ so the editing point is correct. Perhaps this is intended, but it threw me for a moment. Note that it is possible to get the cursor to appear in front of the ‘w’ and it seems weird to have two different cursor positions to indicate the same editing point:

[code]This is a
w|rapped line

Home key:

This is a
|wrapped line[/code]
Thanks

Pascal

0 Likes

#2

Confirmed. This is quite annoying behaviour when using Sublime for plain text entry.

Additionally, often separator chars such as ‘.’ ‘,’ ‘:’ etc. will appear wrapped when the word to their left remains on the previous line:

This is a line which autowraps here
, and also autowraps the same here
.

I’d love to see these little annoyances fixed since Sublime is such a nice environment for distraction free text entry as well as coding.

S

0 Likes