Mercurial > vim
diff src/evalfunc.c @ 13314:65c3e8259124 v8.0.1531
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
commit https://github.com/vim/vim/commit/cafafb381a04e33f3ce9cd15dd9f94b73226831f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 22 21:07:09 2018 +0100
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Problem: Cannot use 24 bit colors in MS-Windows console.
Solution: Add support for vcon. (Nobuhiro Takasaki, Ken Takasaki,
fixes #1270, fixes #2060)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 22 Feb 2018 21:15:05 +0100 |
parents | a88c5e12b860 |
children | 53f15c99a9fd |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -851,7 +851,7 @@ static struct fst #ifdef FEAT_TERMINAL {"term_dumpdiff", 2, 3, f_term_dumpdiff}, {"term_dumpload", 1, 2, f_term_dumpload}, - {"term_dumpwrite", 2, 4, f_term_dumpwrite}, + {"term_dumpwrite", 2, 3, f_term_dumpwrite}, {"term_getaltscreen", 1, 1, f_term_getaltscreen}, {"term_getattr", 2, 2, f_term_getattr}, {"term_getcursor", 1, 1, f_term_getcursor}, @@ -6323,9 +6323,9 @@ f_has(typval_T *argvars, typval_T *rettv else if (STRICMP(name, "syntax_items") == 0) n = syntax_present(curwin); #endif -#if defined(WIN3264) - else if (STRICMP(name, "win95") == 0) - n = FALSE; /* Win9x is no more supported. */ +#ifdef FEAT_VTP + else if (STRICMP(name, "vcon") == 0) + n = has_vtp_working(); #endif #ifdef FEAT_NETBEANS_INTG else if (STRICMP(name, "netbeans_enabled") == 0)