Mercurial > vim
diff src/vim.h @ 9027:773d627cac0b v7.4.1799
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 29 22:59:22 2016 +0200
patch 7.4.1799
Problem: 'guicolors' is a confusing option name.
Solution: Use 'termguicolors' instead. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Apr 2016 23:00:07 +0200 |
parents | c83e2c1e7f2b |
children | f129fd3ebd98 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -1559,21 +1559,21 @@ typedef UINT32_TYPEDEF UINT32_T; #define MSG_PUTS_LONG_ATTR(s, a) msg_puts_long_attr((char_u *)(s), (a)) #ifdef FEAT_GUI -# ifdef FEAT_TERMTRUECOLOR -# define GUI_FUNCTION(f) (gui.in_use ? gui_##f : termtrue_##f) -# define USE_24BIT (gui.in_use || p_guicolors) +# ifdef FEAT_TERMGUICOLORS +# define GUI_FUNCTION(f) (gui.in_use ? gui_##f : termgui_##f) +# define USE_24BIT (gui.in_use || p_tgc) # else # define GUI_FUNCTION(f) gui_##f # define USE_24BIT gui.in_use # endif #else -# ifdef FEAT_TERMTRUECOLOR -# define GUI_FUNCTION(f) termtrue_##f -# define USE_24BIT p_guicolors +# ifdef FEAT_TERMGUICOLORS +# define GUI_FUNCTION(f) termgui_##f +# define USE_24BIT p_tgc # endif #endif -#ifdef FEAT_TERMTRUECOLOR -# define IS_CTERM (t_colors > 1 || p_guicolors) +#ifdef FEAT_TERMGUICOLORS +# define IS_CTERM (t_colors > 1 || p_tgc) #else # define IS_CTERM (t_colors > 1) #endif