Wrong indentation after one-line suites

Bug #858044 reported by Georg Brandl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

Take this code:

if foo: return

Place point at the end of the line and do py-newline-and-indent. The next line will be indented, even though the "if" is already completed and cannot have an indented suite. This used to work previously if I'm not completely mistaken.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
status: New → Confirmed
milestone: none → 6.0.3
Changed in python-mode:
status: Confirmed → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.