Page 1 of 1

Indenting the last line erases it.

Posted: Tue Jan 04, 2011 6:33 pm
by otto
Hi there.

Selecting all lines in a text file and pressing tab indents all lines regarding to set preference 'Indent size'. That's fine. But marking the single last line and pressing tab erases the line rather than indenting it.

Is this a bug?

Posted: Tue Jan 04, 2011 7:46 pm
by ben_josephs
Is the last line in your file unterminated? That is, is it missing its terminating newline?
Did you select that line?
If so, you selected some text not containing a newline.
If there is a selection and the selection doesn't contain a newline, typing <tab> replaces the selection with a tab character.
Try selecting any other line without selecting the newline at its end. Type <tab> and see what happens.

Posted: Wed Mar 09, 2011 2:41 pm
by otto
Technically, yes, selecting some text without a newline char and indenting it will erase the selected text.

But this is rather a question of usability. Comparing to other text editors, indenting the last line is working, with TextPad it is not.