From: Guido van Rossum Date: Thu, 14 Apr 1994 10:37:59 +0000 (+0000) Subject: Fix by Sjoerd so nested indents also work if the open paren is on a X-Git-Tag: v1.0.2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d471619a32d3213b55b80b7522aebc3f6261df5;p=thirdparty%2FPython%2Fcpython.git Fix by Sjoerd so nested indents also work if the open paren is on a line containing tabs --- diff --git a/Misc/python-mode-old.el b/Misc/python-mode-old.el index ae06251dc9c1..04fbc07775a2 100644 --- a/Misc/python-mode-old.el +++ b/Misc/python-mode-old.el @@ -522,8 +522,7 @@ the new line indented." (if nest (save-excursion (goto-char nest) - (beginning-of-line) - (1+ (- nest (point)))) + (1+ (current-column))) (forward-line -1) (if (py-continuation-line-p) ; on at least 3rd line in block (current-indentation) ; so just continue the pattern