This bug appears only if you have the "Trim trailing spaces" setting checked.
If you have an indented block of code, you press enter to add a line and press
tab to indent, it inserts spaces instead of a real tab.

You can see this behavior with "Show/hide spaces, tabs & line ends." option
selected.
Example (@ is the cursor, _ is a space, -> is a tab)
 -> If True Then@
 -> End If

You then press ENTER, then TAB then any character (the letter a for example),
the result is:
 -> If True Then
 -> ____a@
 -> End If

The expected result should be:
 -> If True Then
 ->  -> a@
 -> End If

If "Trim Trailing Spaces" is UNCHECKED, the behavior is as expected.

PSPad 4.5.1
Trim Trailing Spaces: CHECKED
Auto Indent Mode: CHECKED
Real Tabs: CHECKED
Smart Tabs: UNCHECKED
Tab Width: 4

-- 
<http://forum.pspad.com/read.php?4,29558,29558>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem