summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-22 21:15:42 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-22 21:15:42 +0200
commitd7d3cbedb3dc5c843724430539ad52ddafcefc93 (patch)
tree22b3a929241b8d16be1d0be85483326d0051ac6f /src/term.c
parent613fe7ad2b8e2d4e990cc56596590a23a42c3f7a (diff)
downloadvim-git-d7d3cbedb3dc5c843724430539ad52ddafcefc93.tar.gz
patch 8.0.0752: build fails on MS-Windowsv8.0.0752
Problem: Build fails on MS-Windows. Solution: Change #ifdef for set_color_count().
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 98be10f18..fa0be0557 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1427,7 +1427,7 @@ parse_builtin_tcap(char_u *term)
}
}
}
-#if defined(HAVE_TGETENT) || defined(FEAT_TERMRESPONSE)
+
/*
* Set number of colors.
* Store it as a number in t_colors.
@@ -1446,6 +1446,7 @@ set_color_count(int nr)
set_string_option_direct((char_u *)"t_Co", -1, nr_colors, OPT_FREE, 0);
}
+#if defined(FEAT_TERMRESPONSE)
/*
* Set the color count to "val" and redraw if it changed.
*/