Mercurial > vim
diff src/term.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 | 03826c672315 |
children | ecaceb5c5644 |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -1381,7 +1381,7 @@ termgui_get_color(char_u *name) t = termgui_mch_get_color(name); if (t == INVALCOLOR) - semsg(_("E254: Cannot allocate color %s"), name); + semsg(_(e_alloc_color), name); return t; } @@ -1587,9 +1587,9 @@ may_adjust_color_count(int val) log_tr("Received t_Co, redraw_asap(): %d", r); } -#else +# else redraw_asap(CLEAR); -#endif +# endif } } #endif @@ -1597,10 +1597,10 @@ may_adjust_color_count(int val) #ifdef HAVE_TGETENT static char *(key_names[]) = { -#ifdef FEAT_TERMRESPONSE +# ifdef FEAT_TERMRESPONSE // Do this one first, it may cause a screen redraw. "Co", -#endif +# endif "ku", "kd", "kr", "kl", "#2", "#4", "%i", "*7", "k1", "k2", "k3", "k4", "k5", "k6",