changeset 3716:c8af07496d54

(c-indent-line): Call c-backward-to-start-of-if in the case of else following a close brace.
author Richard M. Stallman <rms@gnu.org>
date Sun, 13 Jun 1993 19:16:02 +0000
parents b33ee3d1d18d
children 620f551ac276
files lisp/progmodes/c-mode.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/c-mode.el	Sun Jun 13 18:14:04 1993 +0000
+++ b/lisp/progmodes/c-mode.el	Sun Jun 13 19:16:02 1993 +0000
@@ -544,6 +544,7 @@
 		  (setq indent (save-excursion
 				 (forward-char)
 				 (backward-sexp)
+				 (c-backward-to-start-of-if)
 				 (current-indentation))))
 		 ((and (looking-at "while\\b")
 		       (save-excursion