diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 1f970633bfc..81475f31f60 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -5792,7 +5792,9 @@ likely an invalid python file." | |||
| 5792 | (catch 'exit | 5792 | (catch 'exit |
| 5793 | (while (python-nav--syntactically | 5793 | (while (python-nav--syntactically |
| 5794 | (lambda () | 5794 | (lambda () |
| 5795 | (re-search-backward (python-rx block-start) nil t)) | 5795 | (cl-loop for pt = (re-search-backward (python-rx block-start) nil t) |
| 5796 | until (memq (char-before) '(nil ?\s ?\t ?\n)) | ||
| 5797 | finally return pt)) | ||
| 5796 | #'<) | 5798 | #'<) |
| 5797 | (let ((indentation (current-indentation))) | 5799 | (let ((indentation (current-indentation))) |
| 5798 | (when (and (not (memq indentation collected-indentations)) | 5800 | (when (and (not (memq indentation collected-indentations)) |