Mercurial > vim
comparison src/structs.h @ 13339:da2a9e217200 v8.0.1544
patch 8.0.1544: when using 'termguicolors' SpellBad doesn't show
commit https://github.com/vim/vim/commit/d4fc577e60d325777d38c00bd78fb9a32c7b1dfa
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 27 14:39:03 2018 +0100
patch 8.0.1544: when using 'termguicolors' SpellBad doesn't show
Problem: When using 'termguicolors' SpellBad doesn't show.
Solution: When the GUI colors are not set fall back to the cterm colors.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 27 Feb 2018 14:45:06 +0100 |
parents | 69278c25429d |
children | 65c29bd4548b |
comparison
equal
deleted
inserted
replaced
13338:0afa358885dc | 13339:da2a9e217200 |
---|---|
99 # ifdef FEAT_XCLIPBOARD | 99 # ifdef FEAT_XCLIPBOARD |
100 # include <X11/Intrinsic.h> | 100 # include <X11/Intrinsic.h> |
101 # endif | 101 # endif |
102 # define guicolor_T long | 102 # define guicolor_T long |
103 # define INVALCOLOR ((guicolor_T)0x1ffffff) | 103 # define INVALCOLOR ((guicolor_T)0x1ffffff) |
104 #endif | 104 /* only used for cterm.bg_rgb and cterm.fg_rgb: use cterm color */ |
105 # define CTERMCOLOR ((guicolor_T)0x1fffffe) | |
106 #endif | |
107 #define COLOR_INVALID(x) ((x) == INVALCOLOR || (x) == CTERMCOLOR) | |
105 | 108 |
106 /* | 109 /* |
107 * marks: positions in a file | 110 * marks: positions in a file |
108 * (a normal mark is a lnum/col pair, the same as a file position) | 111 * (a normal mark is a lnum/col pair, the same as a file position) |
109 */ | 112 */ |