changeset 21397:521df9b2698a

Work around a bug in vim's bracket matching, whereby it doesn't realise that only one branch of an #ifdef applies and claims that every subsequent bracket in the entire file is unbalanced.
author Will Thompson <will.thompson@collabora.co.uk>
date Sat, 03 Nov 2007 12:17:06 +0000
parents 78f8a19785b1
children 0a7cccd6d081
files pidgin/gtkblist.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sat Nov 03 12:12:02 2007 +0000
+++ b/pidgin/gtkblist.c	Sat Nov 03 12:17:06 2007 +0000
@@ -4246,6 +4246,13 @@
 					widget->allocation.width - 2 - HEADLINE_CLOSE_SIZE, 2,
 					HEADLINE_CLOSE_SIZE, HEADLINE_CLOSE_SIZE,
 					GDK_RGB_DITHER_NONE, 0, 0);
+#if 0
+		/* The presence of one opening paren in each branch of
+		 * GTK_CHECK_VERSION confuses vim's bracket matching for the
+		 * rest of the file.
+		 */
+		)
+#endif
 		gtk_paint_focus(widget->style, widget->window, GTK_STATE_PRELIGHT,
 				NULL, widget, NULL,
 				widget->allocation.width - HEADLINE_CLOSE_SIZE - 3, 1,