Commit 14d9f80c authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina Committed by Fabián Ezequiel Gallina

Fixed indentation guess logic to never accept 0 as a possible value

parent 78334b43
......@@ -437,7 +437,9 @@ These make `python-indent-calculate-indentation' subtract the value of
(forward-line 1))
(forward-line 1)
(forward-comment 1)
(setq python-indent-offset (current-indentation)))))))
(let ((indent-offset (current-indentation)))
(when (> indent-offset 0)
(setq python-indent-offset indent-offset))))))))
(defun python-indent-context (&optional stop)
"Return information on indentation context.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment