aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-07 11:42:21 +0200
committerGitHub <noreply@github.com>2019-05-07 11:42:21 +0200
commitbc395b4fd4bb4973f22c68763bf000ea4cff4ccb (patch)
treec1855b5d165b3efcf395f8a6c3238ea08ec54c12 /src/nvim/quickfix.c
parent400ee59247eae62990baf30c7802bc8effb3704a (diff)
parent4423759d0360acda87dd829f361957d55748dab5 (diff)
downloadrneovim-bc395b4fd4bb4973f22c68763bf000ea4cff4ccb.tar.gz
rneovim-bc395b4fd4bb4973f22c68763bf000ea4cff4ccb.tar.bz2
rneovim-bc395b4fd4bb4973f22c68763bf000ea4cff4ccb.zip
Merge #9979 from janlazo/vim-8.0.0876
vim-patch:8.0.{876,1144},8.1.0133
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index be643a6062..786e40254d 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -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) {