]> granicus.if.org Git - python/commitdiff
(py-electric-colon): Use (py-next-statement -1) instead of
authorBarry Warsaw <barry@python.org>
Fri, 2 Aug 1996 16:22:43 +0000 (16:22 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 2 Aug 1996 16:22:43 +0000 (16:22 +0000)
(forward-line -1), to properly catch continued statements.

Misc/python-mode.el

index 5c56e0a4cee9219960864b6b1240842d0f2cd335..e4b6e670dda88bd8457d8617cb55325d653c77a2 100644 (file)
@@ -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))