comparison src/if_xcmdsrv.c @ 13380:69517d67421f v8.0.1564

patch 8.0.1564: too many #ifdefs commit https://github.com/vim/vim/commit/f2bd8ef2b4507d02c6043affff8f7e85e3414d5f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 4 18:08:14 2018 +0100 patch 8.0.1564: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Mar 2018 18:15:08 +0100
parents 8412df1479a3
children 27b9a84395b5
comparison
equal deleted inserted replaced
13379:0f9dd1b43244 13380:69517d67421f
1478 if ((r = ServerReplyFind(win, SROP_Add)) != NULL) 1478 if ((r = ServerReplyFind(win, SROP_Add)) != NULL)
1479 { 1479 {
1480 ga_concat(&(r->strings), str); 1480 ga_concat(&(r->strings), str);
1481 ga_append(&(r->strings), NUL); 1481 ga_append(&(r->strings), NUL);
1482 } 1482 }
1483 #ifdef FEAT_AUTOCMD
1484 { 1483 {
1485 char_u winstr[30]; 1484 char_u winstr[30];
1486 1485
1487 sprintf((char *)winstr, "0x%x", (unsigned int)win); 1486 sprintf((char *)winstr, "0x%x", (unsigned int)win);
1488 apply_autocmds(EVENT_REMOTEREPLY, winstr, str, TRUE, curbuf); 1487 apply_autocmds(EVENT_REMOTEREPLY, winstr, str, TRUE, curbuf);
1489 } 1488 }
1490 #endif
1491 vim_free(tofree); 1489 vim_free(tofree);
1492 } 1490 }
1493 else 1491 else
1494 { 1492 {
1495 /* 1493 /*