Mercurial > vim
comparison src/gui.c @ 26057:92c424550367 v8.2.3562
patch 8.2.3562: cannot add color names
Commit: https://github.com/vim/vim/commit/e30d10253fa634c4f60daa798d029245f4eed393
Author: Drew Vogel <dvogel@github>
Date: Sun Oct 24 20:35:07 2021 +0100
patch 8.2.3562: cannot add color names
Problem: Cannot add color names.
Solution: Add the v:colornames dictionary. (Drew Vogel, closes https://github.com/vim/vim/issues/8761)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 24 Oct 2021 21:45:04 +0200 |
parents | aade8ef975d5 |
children | 393ee487cf82 |
comparison
equal
deleted
inserted
replaced
26056:977bbbf36908 | 26057:92c424550367 |
---|---|
4783 if (t == INVALCOLOR | 4783 if (t == INVALCOLOR |
4784 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) | 4784 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) |
4785 && gui.in_use | 4785 && gui.in_use |
4786 #endif | 4786 #endif |
4787 ) | 4787 ) |
4788 semsg(_(e_alloc_color), name); | 4788 semsg(_(e_cannot_allocate_color_str), name); |
4789 return t; | 4789 return t; |
4790 } | 4790 } |
4791 | 4791 |
4792 /* | 4792 /* |
4793 * Return the grey value of a color (range 0-255). | 4793 * Return the grey value of a color (range 0-255). |