]> git.eshelyaron.com Git - emacs.git/commit
lisp/progmodes/python.el (python-nav-end-of-block): prevent infinite loop
authorTom Gillespie <tgbugs@gmail.com>
Wed, 29 Jun 2022 02:28:05 +0000 (19:28 -0700)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 29 Jun 2022 10:13:28 +0000 (12:13 +0200)
commitbf1dbdd87bb87eb9f18f7677d6d254b249b4c251
treec3caa8db9e07c5325f19ce7f06b431b7a242f86f
parente73dbcf26d9de114b3ba228edaf946418b476052
lisp/progmodes/python.el (python-nav-end-of-block): prevent infinite loop

lisp/progmodes/python.el (python-nav-end-of-block): Fix a bad
assumption that python-nav-end-of-statement always makes forward
progress by testing that it actually does. If this check is not made
then it is possible for python-nav-end-of-block to enter an infinite
loop. (bug#56271)
lisp/progmodes/python.el