]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix by Sjoerd so nested indents also work if the open paren is on a
authorGuido van Rossum <guido@python.org>
Thu, 14 Apr 1994 10:37:59 +0000 (10:37 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 14 Apr 1994 10:37:59 +0000 (10:37 +0000)
line containing tabs

Misc/python-mode-old.el

index ae06251dc9c1772202cc83b5a1108f86ded8d207..04fbc07775a215acb03b4cf6ee8693bed7a83826 100644 (file)
@@ -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