Indenting the last line erases it.

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
otto
Posts: 2
Joined: Tue Jan 04, 2011 5:54 pm

Indenting the last line erases it.

Post 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?
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
otto
Posts: 2
Joined: Tue Jan 04, 2011 5:54 pm

Post 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.
Post Reply