aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index fbd6fdd4005..e6faf73547e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -584,6 +584,7 @@ START is the buffer position where the sexp starts."
584 (while (and (forward-line -1) 584 (while (and (forward-line -1)
585 (python-info-continuation-line-p) 585 (python-info-continuation-line-p)
586 (not (bobp)))) 586 (not (bobp))))
587 (back-to-indentation)
587 (when (not (looking-at block-regexp)) 588 (when (not (looking-at block-regexp))
588 (forward-line 1))) 589 (forward-line 1)))
589 (back-to-indentation) 590 (back-to-indentation)
@@ -591,7 +592,9 @@ START is the buffer position where the sexp starts."
591 (or (re-search-forward 592 (or (re-search-forward
592 block-start-line-end 593 block-start-line-end
593 (line-end-position) t) 594 (line-end-position) t)
594 (python-info-continuation-line-p))) 595 (save-excursion
596 (goto-char (line-end-position))
597 (python-info-continuation-line-p))))
595 (point-marker))))) 598 (point-marker)))))
596 'after-beginning-of-block) 599 'after-beginning-of-block)
597 ;; After normal line 600 ;; After normal line