Sublime Forum

Strange indentation bug

#1

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:

//| // 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):

//| // 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:

// // 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.

0 Likes