Hello,
I am using the latest build of sublime text 3 on Mac OS X 10.8.5.
When I have multiple line text documents, some lines of which are longer than the width of your screen, such that they wrap if word wrap is turned on, and I select all lines, then “Split into Lines”, the cursor goes to the end of each line, no problem. If you press home a few times however (where on a mac, home is Cmd-):
-
the first time, the cursor moves to the start of text on the line where the cursor is, regardless of whether that is the start of the line. So, for example, on a long line of text that wraps to two lines, the cursor will go to the start of text on the second line (the wrap of the end of the line, where the cursor went when asked to go to the end of the line), not the first line (the actual start of that wrapped line).
-
the second time, the cursor moves to the beginning of the line where the cursor began, regardless of whether that is the start of the long line of text that wraps to two lines. So, for example, on a multi-line wrapped line of text that wraps to two lines, the cursor will go to the very beginning of the second line (the wrap of the end of the line, where the cursor went when asked to go to the end of the line), not the first line (the actual start of that wrapped line).
If you turn off word wrap, everything works as expected - first home goes to start of text (left-most non-white-space character), second home goes to actual left-most position in all lines.
So, you can work around this by just turning word-wrap off, but figured I’d make a note of it, see if this is a bug or a setting I don’t have configured correctly.
Thanks,
Jon