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 "^")
(back-to-indentation)
(forward-line 0)
(let* ((ppss (syntax-ppss))
(context-point
(or
......@@ -1489,6 +1489,7 @@ nested definitions."
(python-info-line-ends-backslash-p))
(forward-line -1)
(python-nav-beginning-of-statement))))
(back-to-indentation)
(point-marker))
(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