Commit 76a1bd18 authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

Fix an infloop in python-nav-beginning-of-statement

* lisp/progmodes/python.el (python-nav-beginning-of-statement):
Fix an infloop (bug#30277).
parent 37b2f9f3
......@@ -1474,7 +1474,7 @@ nested definitions."
(defun python-nav-beginning-of-statement ()
"Move to start of current statement."
(interactive "^")
(forward-line 0)
(let* ((ppss (syntax-ppss))
......@@ -1489,6 +1489,7 @@ nested definitions."
(forward-line -1)
(defun python-nav-end-of-statement (&optional noend)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment