]> granicus.if.org Git - vim/commitdiff
patch 8.0.1175: build failure without +termresponse v8.0.1175
authorBram Moolenaar <Bram@vim.org>
Wed, 4 Oct 2017 17:35:02 +0000 (19:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 4 Oct 2017 17:35:02 +0000 (19:35 +0200)
Problem:    Build failure without +termresponse.
Solution:   Add #ifdef.

src/syntax.c
src/version.c

index d7c482d5439e6230c81e2b14dcac2f4051dd5c2f..8444db38c64a926a5b27accd155d8aa4a31aba65 100644 (file)
@@ -7350,10 +7350,12 @@ lookup_color(int idx, int foreground, int *boldp)
            else
                color = color_numbers_8[idx];
        }
+#ifdef FEAT_TERMRESPONSE
        if (t_colors >= 256 && color == 15 && is_mac_terminal)
            /* Terminal.app has a bug: 15 is light grey. Use white
             * from the color cube instead. */
            color = 231;
+#endif
     }
     return color;
 }
index 1d212777a15fae683293f6db2dd370fdb0519748..b31943fc0d4a7c618ad6425c96d8804d884382a6 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1175,
 /**/
     1174,
 /**/