diff src/if_xcmdsrv.c @ 1698:f4f8014d516e v7.2c.000

updated for version 7.2c-000
author vimboss
date Wed, 06 Aug 2008 17:06:04 +0000
parents b7ad1c609161
children 17b96d8dcc5c
line wrap: on
line diff
--- a/src/if_xcmdsrv.c
+++ b/src/if_xcmdsrv.c
@@ -1390,7 +1390,6 @@ serverEventProc(dpy, eventPtr)
 	    unsigned int u;
 	    int		gotWindow;
 	    char_u	*str;
-	    char_u	winstr[30];
 	    struct	ServerReply *r;
 	    char_u	*enc;
 
@@ -1436,8 +1435,12 @@ serverEventProc(dpy, eventPtr)
 		ga_append(&(r->strings), NUL);
 	    }
 #ifdef FEAT_AUTOCMD
-	    sprintf((char *)winstr, "0x%x", (unsigned int)win);
-	    apply_autocmds(EVENT_REMOTEREPLY, winstr, str, TRUE, curbuf);
+	    {
+		char_u	winstr[30];
+
+		sprintf((char *)winstr, "0x%x", (unsigned int)win);
+		apply_autocmds(EVENT_REMOTEREPLY, winstr, str, TRUE, curbuf);
+	    }
 #endif
 	    vim_free(tofree);
 	}