mirror of https://github.com/python/cpython
(py-electric-colon): use a save-excursion instead of a progn in
indentation calculation test.
This commit is contained in:
parent
cc8914fb22
commit
3aca2a1f1c
|
@ -431,7 +431,7 @@ argument is provided, that many colons are inserted non-electrically."
|
|||
(indent (py-compute-indentation)))
|
||||
(if (and (not arg)
|
||||
(py-outdent-p)
|
||||
(= indent (progn
|
||||
(= indent (save-excursion
|
||||
(forward-line -1)
|
||||
(py-compute-indentation)))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue