diff src/testdir/test3.ok @ 2855:78859ef2982b v7.3.201

updated for version 7.3.201 Problem: "} else" still causes following lines to be indented too much. Solution: Better detection for the "else" block. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Wed, 25 May 2011 13:34:04 +0200
parents 8dbea5adc937
children f80e67bd6271
line wrap: on
line diff
--- a/src/testdir/test3.ok
+++ b/src/testdir/test3.ok
@@ -1262,3 +1262,14 @@ void func(void)
 	foo();
 }
 
+
+void func(void)
+{
+	for (int i = 0; i < 10; ++i)
+		if (i & 1) {
+			foo(1);
+		} else
+			foo(0);
+	baz();
+}
+