summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-08-02 16:22:43 (GMT)
committerBarry Warsaw <barry@python.org>1996-08-02 16:22:43 (GMT)
commita766182f0869b04bf12151f314485ea71e274781 (patch)
treed46f4fe120996940f1d81638638115496fc866e6 /Misc
parentbbe04d0f9fb3b6c2fa5e64cd6a290ab94f4a70f5 (diff)
downloadcpython-a766182f0869b04bf12151f314485ea71e274781.zip
cpython-a766182f0869b04bf12151f314485ea71e274781.tar.gz
cpython-a766182f0869b04bf12151f314485ea71e274781.tar.bz2
(py-electric-colon): Use (py-next-statement -1) instead of
(forward-line -1), to properly catch continued statements.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 5c56e0a..e4b6e67 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -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))