Mercurial > vim
comparison src/highlight.c @ 26059:c7e09c069ece v8.2.3563
patch 8.2.3563: build failure with +eval but without GUI or +termguicolors
Commit: https://github.com/vim/vim/commit/2a52196b78f3fcc0e9fad538984272c5fd8d85db
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 25 10:30:14 2021 +0100
patch 8.2.3563: build failure with +eval but without GUI or +termguicolors
Problem: Build failure with +eval but without GUI or +termguicolors
Solution: Adjust #ifdef. (John Marriott)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Oct 2021 11:45:04 +0200 |
parents | 92c424550367 |
children | c544eacaf066 |
comparison
equal
deleted
inserted
replaced
26058:3663569f891b | 26059:c7e09c069ece |
---|---|
473 | 473 |
474 recursive = TRUE; | 474 recursive = TRUE; |
475 buf = alloc(STRLEN(name) + 12); | 475 buf = alloc(STRLEN(name) + 12); |
476 if (buf != NULL) | 476 if (buf != NULL) |
477 { | 477 { |
478 #ifdef FEAT_EVAL | 478 #if defined(FEAT_EVAL) && (defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS)) |
479 load_default_colors_lists(); | 479 load_default_colors_lists(); |
480 #endif | 480 #endif |
481 apply_autocmds(EVENT_COLORSCHEMEPRE, name, | 481 apply_autocmds(EVENT_COLORSCHEMEPRE, name, |
482 curbuf->b_fname, FALSE, curbuf); | 482 curbuf->b_fname, FALSE, curbuf); |
483 sprintf((char *)buf, "colors/%s.vim", name); | 483 sprintf((char *)buf, "colors/%s.vim", name); |
2284 if (color > 0xffffff) | 2284 if (color > 0xffffff) |
2285 return INVALCOLOR; | 2285 return INVALCOLOR; |
2286 return gui_adjust_rgb(color); | 2286 return gui_adjust_rgb(color); |
2287 } | 2287 } |
2288 | 2288 |
2289 #if defined(FEAT_EVAL) | 2289 #ifdef FEAT_EVAL |
2290 // Returns the color currently mapped to the given name or INVALCOLOR if no | 2290 // Returns the color currently mapped to the given name or INVALCOLOR if no |
2291 // such name exists in the color table. The convention is to use lowercase for | 2291 // such name exists in the color table. The convention is to use lowercase for |
2292 // all keys in the v:colornames dictionary. The value can be either a string in | 2292 // all keys in the v:colornames dictionary. The value can be either a string in |
2293 // the form #rrggbb or a number, either of which is converted to a guicolor_T. | 2293 // the form #rrggbb or a number, either of which is converted to a guicolor_T. |
2294 guicolor_T | 2294 guicolor_T |