superman268 / pyscripter

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

Smart tabs puts in 3 spaces for each tab when tab is set to 4 spaces #774

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Turn on Smart Tabs (in Editor Options, Options), with Tab width set to 4 (in 
Display).
2. Insert a tab. 

What is the expected output? What do you see instead?
I expected the tab key to insert 4 spaces. But every time is it only 3 spaces. 
It seems to ignore the Tab width setting.

What version of the product are you using? On what operating system?
64bit python & pyscripter on 64 bit windows 2008 

Original issue reported on code.google.com by c...@petshealth.com.au on 6 Jul 2014 at 7:11

GoogleCodeExporter commented 9 years ago
From the Help File,
Smart tabs:
When tabbing, the cursor will go to the next non-white space character of the 
previous line. 

In my testing this is what it does.  On the first line it moves the cursor by 4 
spaces.

Original comment by pyscripter on 26 Mar 2015 at 11:12

GoogleCodeExporter commented 9 years ago
Reproduced here. Happens more when I am doing the else: and then add an if 
inside. Also I'll see a problem with a try/except.. the tab seems to try to go 
the length of "except" (6 tabs) instead of the 4 that the "try" had so it ends 
up with:

'''
try:
    do something
except:
      why is my tab here?
'''

Original comment by TAQMOB...@gmail.com on 16 Jun 2015 at 7:28