Commit 0d471619 authored by Guido van Rossum's avatar Guido van Rossum

Fix by Sjoerd so nested indents also work if the open paren is on a

line containing tabs
parent d3976e20
...@@ -522,8 +522,7 @@ the new line indented." ...@@ -522,8 +522,7 @@ the new line indented."
(if nest (if nest
(save-excursion (save-excursion
(goto-char nest) (goto-char nest)
(beginning-of-line) (1+ (current-column)))
(1+ (- nest (point))))
(forward-line -1) (forward-line -1)
(if (py-continuation-line-p) ; on at least 3rd line in block (if (py-continuation-line-p) ; on at least 3rd line in block
(current-indentation) ; so just continue the pattern (current-indentation) ; so just continue the pattern
......
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