diff options
author | Barry Warsaw <barry@python.org> | 1996-08-02 16:22:43 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1996-08-02 16:22:43 (GMT) |
commit | a766182f0869b04bf12151f314485ea71e274781 (patch) | |
tree | d46f4fe120996940f1d81638638115496fc866e6 /Misc | |
parent | bbe04d0f9fb3b6c2fa5e64cd6a290ab94f4a70f5 (diff) | |
download | cpython-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.el | 2 |
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)) |