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 d340550a017..9bfafeb20cd 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1068,7 +1068,9 @@ minimum." | |||
| 1068 | (levels (python-indent--calculate-levels indentation))) | 1068 | (levels (python-indent--calculate-levels indentation))) |
| 1069 | (if previous | 1069 | (if previous |
| 1070 | (python-indent--previous-level levels (current-indentation)) | 1070 | (python-indent--previous-level levels (current-indentation)) |
| 1071 | (apply #'max levels)))) | 1071 | (if levels |
| 1072 | (apply #'max levels) | ||
| 1073 | 0)))) | ||
| 1072 | 1074 | ||
| 1073 | (defun python-indent-line (&optional previous) | 1075 | (defun python-indent-line (&optional previous) |
| 1074 | "Internal implementation of `python-indent-line-function'. | 1076 | "Internal implementation of `python-indent-line-function'. |