Home Download Buy Blog Forum Support

strange indentation bug

strange indentation bug

Postby adzenith on Thu Jun 24, 2010 5:58 pm

In preparing my last post about wrapLines, I came across a strange indentation bug. I was using this exact code, where the pipe is where my insertion point was:
Code: Select all
    //|
    // This should never happen, because if we don't recognize the type
    // we should have already returned.
    //

I jammed shift+down three times to get a selection in order to unindent, getting this (selection from pipe to pipe):
Code: Select all
    //|
    // This should never happen, because if we don't recognize the type
    // we should have already returned.
    //|

At this point I pressed shift+tab, and lo and behold I had something quite odd:
Code: Select all
//
    // This should never happen, because if we don't recognize the type
// we should have already returned.
//

Strangely enough, tab works fine to indent, but shift+tab will only unindent the second line if all three other lines have already crashed into the margin.

This and the previous post about wrapLines were using 20100613. My alt+q, tab, and shift+tab behaviors are Sublime stock.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 21 guests