summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-04-14 10:37:59 (GMT)
committerGuido van Rossum <guido@python.org>1994-04-14 10:37:59 (GMT)
commit0d471619a32d3213b55b80b7522aebc3f6261df5 (patch)
tree3e28048b2015baf729c5d75a89f1c285daf34502 /Misc
parentd3976e20d8181128ea59564b315e29bf13e57b96 (diff)
downloadcpython-0d471619a32d3213b55b80b7522aebc3f6261df5.zip
cpython-0d471619a32d3213b55b80b7522aebc3f6261df5.tar.gz
cpython-0d471619a32d3213b55b80b7522aebc3f6261df5.tar.bz2
Fix by Sjoerd so nested indents also work if the open paren is on a
line containing tabs
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode-old.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/Misc/python-mode-old.el b/Misc/python-mode-old.el
index ae06251..04fbc07 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