0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #2153)
This commit is contained in:
Bram Moolenaar
2017-09-24 19:39:09 +02:00
parent e0de17d84e
commit 0b05e491b4
2 changed files with 4 additions and 2 deletions

View File

@@ -443,8 +443,8 @@ parse_efm_option(char_u *efm)
i = (FMT_PATTERNS * 3) + ((int)STRLEN(efm) << 2);
for (round = FMT_PATTERNS; round > 0; )
i += (int)STRLEN(fmt_pat[--round].pattern);
#ifdef COLON_IN_FILENAME
i += 12; /* "%f" can become twelve chars longer */
#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