summaryrefslogtreecommitdiff
path: root/src/if_xcmdsrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_xcmdsrv.c')
-rw-r--r--src/if_xcmdsrv.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/if_xcmdsrv.c b/src/if_xcmdsrv.c
index 041ed5a46..024bac6b2 100644
--- 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);
}