]> git.eshelyaron.com Git - emacs.git/commit
Fix Python mode error caused by incorrect indentation
authorkobarity <kobarity@gmail.com>
Sat, 16 Sep 2023 14:14:45 +0000 (23:14 +0900)
committerEshel Yaron <me@eshelyaron.com>
Sat, 8 Jun 2024 13:01:14 +0000 (15:01 +0200)
commitfcffcd724afe1a45e2c79f79ed0ca465869f10f8
tree859bb6422816f14a41fadc9350ea5f889335edb2
parent5955ebe1db5dc44bc2564a559ff9e86bd5ae078e
Fix Python mode error caused by incorrect indentation

* lisp/progmodes/python.el (python-indent--calculate-indentation):
Guard against negative indentation.  (Bug #65870)

* test/lisp/progmodes/python-tests.el
(python-indent-badly-indented-block-end): New test.

(cherry picked from commit c03cafba390603de653def097fdcf9566d502061)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el