Skip to content

Commit

Permalink
patch 8.0.1144: using wrong #ifdef for computing length
Browse files Browse the repository at this point in the history
Problem:    Using wrong #ifdef for computing length.
Solution:   use BACKSLASH_IN_FILENAME instead of COLON_IN_FILENAME. (Yasuhiro
            Matsomoto, closes #2153)
  • Loading branch information
brammool committed Sep 24, 2017
1 parent e0de17d commit 0b05e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quickfix.c
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1144,
/**/
1143,
/**/
Expand Down

0 comments on commit 0b05e49

Please sign in to comment.