aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9f14bef5258..250f4812a33 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -786,7 +786,8 @@ innermost definition."
786 (forward-line -1) 786 (forward-line -1)
787 (not (bobp)) 787 (not (bobp))
788 (not (back-to-indentation)))) 788 (not (back-to-indentation))))
789 (forward-line 1) 789 (unless (bobp)
790 (forward-line 1))
790 (point-marker)) 791 (point-marker))
791 (if innermost 792 (if innermost
792 (python-beginning-of-defun) 793 (python-beginning-of-defun)