0

Can't see line when scrolling long lines of unwrapped text when the cursor is at end of line.

mrmachine fa 12 anys 0

When soft wrap is disabled and I have several long lines of text and I want to scroll through them to check that they all have a closing </li> or </p> or no extraneous white space between the text and </p> or whatever, I jump to the end of a line with Cmd-Right and then scroll up or down with Up or Down keys.


If the cursor is currently on a short line, and I press Down to move the cursor to a long line, the cursor is correctly positioned at the end of the line and at the far right of the window, so I can see the full editor width of text for that line.


Conversely, if the cursor is on a very long line (so long that you can't see any of the text on the next line), when you press Down to move the cursor to the next (short) line the cursor will be at the end of the line (as expected), but the cursor will be at the far left of the window so I can't actually see *ANY* of the text on that line.


I have to press the Left key a bunch of times (or old it down, or use Ctrl-Left, etc.) to move the cursor to the left just so I can see the text at the end of that line.


But then the cursor is no longer at the end of the line, and then I press Down key to move to the next line, the cursor is not positioned at the end of the line but in the middle of the line (unless the next line was shorter than the current line, in which case I may also not see any of the text on that line).


When moving the cursor to the EOL on a new line and scrolling the window to the cursor, Sublime Text 2 should show as much of the line as possible by positioning the cursor at the far right of the screen (as it does when going from a short to a long line).