Commit a766182f authored by Barry Warsaw's avatar Barry Warsaw

(py-electric-colon): Use (py-next-statement -1) instead of

(forward-line -1), to properly catch continued statements.
parent bbe04d0f
......@@ -756,7 +756,7 @@ Electric behavior is inhibited inside a string or comment."
(if (and (not arg)
(py-outdent-p)
(= indent (save-excursion
(forward-line -1)
(py-next-statement -1)
(py-compute-indentation)))
)
(setq outdent py-indent-offset))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment