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 16a6d4b45d0..69df0535054 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -437,7 +437,9 @@ These make `python-indent-calculate-indentation' subtract the value of | |||
| 437 | (forward-line 1)) | 437 | (forward-line 1)) |
| 438 | (forward-line 1) | 438 | (forward-line 1) |
| 439 | (forward-comment 1) | 439 | (forward-comment 1) |
| 440 | (setq python-indent-offset (current-indentation))))))) | 440 | (let ((indent-offset (current-indentation))) |
| 441 | (when (> indent-offset 0) | ||
| 442 | (setq python-indent-offset indent-offset)))))))) | ||
| 441 | 443 | ||
| 442 | (defun python-indent-context (&optional stop) | 444 | (defun python-indent-context (&optional stop) |
| 443 | "Return information on indentation context. | 445 | "Return information on indentation context. |