Newline honor dedent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Is possible to make the cursor remember the indention which has been set in the "blank/whitespace only" line when moving to a next line?
Here are the steps to replicate the problem:
if condition: # first line
if condition_2: # second line
2 1 # the cursor appears in position 1, then I press backspace and it goes to 2, finally I press RET
4 3 # after the previous RET the cursor goes to position marked by 3, but i would like it to stay in column
# defined in previous line by last position and appear on the position marked by 4
I would like the cursor to go from position 2 directly to 4 when RET is pressed.
Changed in python-mode: | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.1.4 |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → In Progress |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
If py-newline- and-indent is called from an empty but dedented line, don't go to the outmost indent, honor dedent.