LionHeart123 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

incorrect tab key indentation after finishing an indented block #605

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. write an indented line that expects an indented line to follow (eg '    if 
x==True:'), press return
2. on the line below it, type whatever you want the condition to execute. The 
auto indent will correctly indent this line (so now we are at a double indent).
3. press enter a few more times, the TAB key will still "double" indent to the 
indent position within the condition in step 1's block.

What is the expected output? What do you see instead?
The editor should be aware that you are no longer typing in that indent block 
after pressing return at least twice, and allow the TAB key to only do single 
indents, rather than automatically doing a double indent. The TAB key won't 
single indent any more below this condition block.

What version of the product are you using? On what operating system?
Pysripter 2.4.6 (x64) on windows 7 enterprise.

Please provide any additional information below.
n/a

Original issue reported on code.google.com by bapar...@gmail.com on 25 Jan 2012 at 3:19

GoogleCodeExporter commented 9 years ago
Go to Tools Options Editor options and uncheck Smart Tabs.  Then it wile work 
as you expected it to work. 

Original comment by pyscripter on 26 Jan 2012 at 2:49