Skip to content

Commit

Permalink
Fixed indentation guess logic to never accept 0 as a possible value
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabián Ezequiel Gallina committed Feb 18, 2011
1 parent 23157a7 commit 8428d7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python.el
Expand Up @@ -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.
Expand Down

0 comments on commit 8428d7d

Please sign in to comment.