summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-12 15:11:06 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-12 15:11:06 +0200
commitacc770a10f65107131473ea2ab4ae5d429dfe172 (patch)
tree351cb18e093e7291f67781c233b95f508e93ed21 /src/gui.c
parentcd630becc8849bf4647f04eeb02a4883bf46140e (diff)
patch 8.2.0554: the GUI doesn't set t_Cov8.2.0554
Problem: The GUI doesn't set t_Co. Solution: In the GUI set t_Co to 256 * 256 * 256. (closes #5903)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 2d6008146d..cdfc929e9f 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -513,6 +513,9 @@ gui_init(void)
*/
set_option_value((char_u *)"paste", 0L, NULL, 0);
+ // Set t_Co to the number of colors: RGB.
+ set_color_count(256 * 256 * 256);
+
/*
* Set up system-wide default menus.
*/