On Dec 19, 2011, at 9:02 AM, Adam Strzelecki wrote:

For indented soft wrap though it isnít just about pixels because going from first to second line with caret where there is indent on second, will move the caret, and thereís then a question of whether it should be moved back when leaving the last line of the paragraph.

I believe he was talking about some other issue, if you enable soft-wrap indent and move cared down within the same wrapped source code line, caret goes right by the amount of indent defined in indentedSoftWrap. I'd expect it remain at the same horizontal position, as if I had indented the code manually by line break and spaces.

Yeah, I don't think this is the same as the CJK issue. I've attached a screenshot to illustrate the behavior I'm seeing. Here, the text is soft-wrap indented by a tab character (4 spaces). Say the cursor is between "od" and you hit Up. The cursor is now between "um", as expected. Hitting Down should then return you to "od", but it doesn't. It jumps to "em", exactly four spaces to the right. This is quite jarring and not the expected behavior, especially since this only happens on the first line and only with soft-wrap indenting.

Unfortunately this doesn't happen 100% of the time, so it's difficult to give the precise steps to reproduce consistently. But I find it happens routinely.

Here is the rule I use:

{ indentedSoftWrap = {
format = '$0\t';
match = '\A[ \t]*';