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

Fix error when indenting on the first line of a file #2615

Merged
merged 1 commit into from
Aug 20, 2015

Conversation

Beta-Alf
Copy link

Fixes #2614

When there is no previous line, the variable is unassigned and the whole function crashes. With this edit it exits gracefully.

@ccordoba12 ccordoba12 added this to the v2.3.6 milestone Aug 15, 2015
@ccordoba12 ccordoba12 changed the title fixes #2614 Fix error when indenting on the first line of a file Aug 15, 2015
@ccordoba12
Copy link
Member

Thanks for your contribution. I can confirm the error, and the fix seems the right one in this case :-)

ccordoba12 added a commit that referenced this pull request Aug 20, 2015
Fix error when indenting on the first line of a file
@ccordoba12 ccordoba12 merged commit 31e7777 into spyder-ide:master Aug 20, 2015
ccordoba12 added a commit that referenced this pull request Aug 21, 2015
ccordoba12 added a commit that referenced this pull request Aug 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants