Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor autoindentation fails after list, dict #1373

Closed
spyder-bot opened this issue Feb 17, 2015 · 1 comment
Closed

Editor autoindentation fails after list, dict #1373

spyder-bot opened this issue Feb 17, 2015 · 1 comment

Comments

@spyder-bot
Copy link
Collaborator

From patrick....@gmail.com on 2013-04-30T13:17:22Z

Spyder Version: 2.1.12
Python Version: 2.7.3
Qt Version: 4.8.4, PyQt4 (API v2) 4.9.6 on Windows

What steps will reproduce the problem?

  1. Start a new file and type this:

def somenewfunc(arg1,
arg2=0,
_

The editor helpfully autoindents leaving the cursor where the underscore is shown until you try something like a list or dict:

def somenewfunc(arg1,
arg2=0,
arg3=[1],
_

OR

def somenewfunc(arg1,
arg2=0,
arg3={1:'a'},
_

Then it does not autoindent. There may be other objects which interfere with the autoindentation but I don't know what they are. It took a little while to observe the behavior was object-dependent rather than sporadic.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1373

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-02T18:54:45Z

Labels: Cat-Editor MS-v2.4

@ccordoba12 ccordoba12 modified the milestones: v3.0, v3.0beta4 Jan 27, 2016
@ccordoba12 ccordoba12 modified the milestones: v3.0beta4, v3.0rc1 Apr 25, 2016
@ccordoba12 ccordoba12 modified the milestones: v3.0rc1, v3.1 Jun 9, 2016
@ccordoba12 ccordoba12 modified the milestones: v3.0.2, v3.1 Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants