mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +00:00
(py-electric-colon): Use (py-next-statement -1) instead of
(forward-line -1), to properly catch continued statements.
This commit is contained in:
parent
bbe04d0f9f
commit
a766182f08
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ Electric behavior is inhibited inside a string or comment."
|
||||||
(if (and (not arg)
|
(if (and (not arg)
|
||||||
(py-outdent-p)
|
(py-outdent-p)
|
||||||
(= indent (save-excursion
|
(= indent (save-excursion
|
||||||
(forward-line -1)
|
(py-next-statement -1)
|
||||||
(py-compute-indentation)))
|
(py-compute-indentation)))
|
||||||
)
|
)
|
||||||
(setq outdent py-indent-offset))
|
(setq outdent py-indent-offset))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue