summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-24 17:23:45 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-24 17:23:45 +0200
commit87202264f8e27f084c0e58f98aeb27fa5c6d5251 (patch)
tree759227c129d05bbc533dc54554258a9f303ada5f /src/term.c
parent9c65253fe702ea010afec11aa971acd542c35de2 (diff)
downloadvim-git-87202264f8e27f084c0e58f98aeb27fa5c6d5251.tar.gz
patch 8.2.0816: terminal test fails when compiled with Athenav8.2.0816
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)
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c
index e79fa5eb2..588058941 100644
--- 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",