vim-patch:8.0.1144: using wrong #ifdef for computing length

Problem:    Using wrong #ifdef for computing length.
Solution:   use BACKSLASH_IN_FILENAME instead of COLON_IN_FILENAME. (Yasuhiro
            Matsomoto, closes vim/vim#2153)
0b05e491b4
This commit is contained in:
Jan Edmund Lazo
2019-05-07 03:38:24 -04:00
parent 32059526de
commit 4423759d03

View File

@@ -430,7 +430,11 @@ static efm_T * parse_efm_option(char_u *efm)
for (int round = FMT_PATTERNS - 1; round >= 0; ) {
i += STRLEN(fmt_pat[round--].pattern);
}
#ifdef BACKSLASH_IN_FILENAME
i += 12; // "%f" can become twelve chars longer (see efm_to_regpat)
#else
i += 2; // "%f" can become two chars longer
#endif
char_u *fmtstr = xmalloc(i);
while (efm[0] != NUL) {