Your message dated Thu, 18 May 2006 12:56:56 -0500 with message-id <[EMAIL PROTECTED]> and subject line corner case in C indentation now works properly in vim7 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: vim Version: 5.7.019-3 Severity: minor The following C code illustrates the bug: void test1(){ if(x==y) if(y==z) foo=1; else bar=1; /* no outer else clause, just more code */ } void test2(){ if(x==y) if(y==z) { foo=1; bar=2; } else baz=1; /* no outer else clause, just more code */ } void test3(){ if(x==y) if(y==z) foo=1; else { bar=1; baz=2; } /* no outer else clause, just more code */ } void test4(){ for(i=0; i<1; i++) if(x==i) foo++; else bar++; /* more code */ } All of the "more code" is indented as shown, although it should be aligned under the first statement. The first line may be any statement that causes the next statement to indent but does not begin a block. The 'else' must begin the line, and there must be a full statement on the same line. The faulty indentation continues until an enclosing block is closed.
--- End Message ---
--- Begin Message ---Version: 7.0-017+2 Hi, the following snippet of C code is now properly indented by Vim when cindent is set: void test4(){ for(i=0; i<1; i++) if(x==i) foo++; else bar++; /* more code */ } Closing the bug (a 5 years old one!, yuppieee!!) with this mail. Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!-
signature.asc
Description: Digital signature
--- End Message ---

