File: patch-8.0.0651-build-failure-without-the-auto-command-fea.patch

package info (click to toggle)
vim 2%3A8.0.0197-4%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 60,600 kB
  • sloc: ansic: 320,650; cpp: 4,144; makefile: 3,536; perl: 1,179; awk: 715; sh: 682; xml: 526; lisp: 501; cs: 458; python: 410; asm: 114; csh: 6
file content (44 lines) | stat: -rw-r--r-- 1,126 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: Bram Moolenaar <Bram@vim.org>
Date: Thu, 22 Jun 2017 14:56:12 +0200
Subject: patch 8.0.0651: build failure without the auto command feature

Problem:    Build failure without the auto command feature.
Solution:   Add #ifdef. (closes #1782)

(cherry picked from commit 157069b04e64eff72d2b34a2f727dfb6e2190cf3)

Signed-off-by: James McCoy <jamessan@debian.org>
---
 src/ex_cmds.c | 2 ++
 src/version.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index f8893d4..a5b20b5 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -6790,9 +6790,11 @@ fix_help_buffer(void)
     char_u	*rt;
     int		mustfree;
 
+#ifdef FEAT_AUTOCMD
     /* Set filetype to "help" if still needed. */
     if (STRCMP(curbuf->b_p_ft, "help") != 0)
 	set_option_value((char_u *)"ft", 0L, (char_u *)"help", OPT_LOCAL);
+#endif
 
 #ifdef FEAT_SYN_HL
     if (!syntax_present(curwin))
diff --git a/src/version.c b/src/version.c
index a6c4879..36e20ce 100644
--- a/src/version.c
+++ b/src/version.c
@@ -776,6 +776,8 @@ static int included_patches[] =
     706,
 /**/
     703,
+/**/
+    651,
 /**/
     649,
 /**/