mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
(py-electric-colon): use a save-excursion instead of a progn in
indentation calculation test.
This commit is contained in:
parent
cc8914fb22
commit
3aca2a1f1c
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ argument is provided, that many colons are inserted non-electrically."
|
||||||
(indent (py-compute-indentation)))
|
(indent (py-compute-indentation)))
|
||||||
(if (and (not arg)
|
(if (and (not arg)
|
||||||
(py-outdent-p)
|
(py-outdent-p)
|
||||||
(= indent (progn
|
(= indent (save-excursion
|
||||||
(forward-line -1)
|
(forward-line -1)
|
||||||
(py-compute-indentation)))
|
(py-compute-indentation)))
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue