comparison src/gui.c @ 20524:bed30e6b5a09 v8.2.0816

patch 8.2.0816: terminal test fails when compiled with Athena Commit: https://github.com/vim/vim/commit/87202264f8e27f084c0e58f98aeb27fa5c6d5251 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 24 17:23:45 2020 +0200 patch 8.2.0816: terminal test fails when compiled with Athena Problem: Terminal test fails when compiled with Athena. Solution: Do give an error when the GUI is not running. (hint by Dominique Pelle, closes #5928, closes #6132)
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 May 2020 17:30:03 +0200
parents 993d820196b9
children 533bbd1917be
comparison
equal deleted inserted replaced
20523:775e169d4cfc 20524:bed30e6b5a09
4739 if (t == INVALCOLOR 4739 if (t == INVALCOLOR
4740 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) 4740 #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK)
4741 && gui.in_use 4741 && gui.in_use
4742 #endif 4742 #endif
4743 ) 4743 )
4744 semsg(_("E254: Cannot allocate color %s"), name); 4744 semsg(_(e_alloc_color), name);
4745 return t; 4745 return t;
4746 } 4746 }
4747 4747
4748 /* 4748 /*
4749 * Return the grey value of a color (range 0-255). 4749 * Return the grey value of a color (range 0-255).