From 76eefb1fe574c776c21282691aacc6fea3475abe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:04 -0300 Subject: [PATCH] Small fix to python-indent-electric-colon Check current indentation is greater than the current calculated indentation. --- lisp/progmodes/python.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 76546aa9799..3863a9f851e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -797,6 +797,7 @@ just insert a single colon." (and (not arg) (eolp) (not (nth 8 (syntax-ppss))) + (> (current-indentation) (python-indent-calculate-indentation)) (save-excursion (python-indent-line)))) (put 'python-indent-electric-colon 'delete-selection t) -- 2.39.5