summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-05 20:24:39 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-05 20:24:39 +0000
commitd82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf (patch)
tree604109254c7057942fce5c1af26fdd1bc36c066f /src/terminal.c
parentbb8cac56d9c398a2b546d9c81c15e8c3d8fd811e (diff)
downloadvim-git-d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf.tar.gz
patch 8.2.4012: error messages are spread outv8.2.4012
Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/terminal.c b/src/terminal.c
index d974c1132..ab66ace44 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -883,7 +883,7 @@ ex_terminal(exarg_T *eap)
{
if (*p)
*p = NUL;
- semsg(_("E181: Invalid attribute: %s"), cmd);
+ semsg(_(e_invalid_attribute_str), cmd);
goto theend;
}
# undef OPTARG_HAS
@@ -4862,7 +4862,7 @@ f_term_dumpwrite(typval_T *argvars, typval_T *rettv UNUSED)
term = buf->b_term;
if (term->tl_vterm == NULL)
{
- emsg(_("E958: Job already finished"));
+ emsg(_(e_job_already_finished));
return;
}
@@ -4888,7 +4888,7 @@ f_term_dumpwrite(typval_T *argvars, typval_T *rettv UNUSED)
return;
if (mch_stat((char *)fname, &st) >= 0)
{
- semsg(_("E953: File exists: %s"), fname);
+ semsg(_(e_file_exists_str), fname);
return;
}
@@ -5992,7 +5992,7 @@ f_term_setsize(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
buf = term_get_buf(argvars, "term_setsize()");
if (buf == NULL)
{
- emsg(_("E955: Not a terminal buffer"));
+ emsg(_(e_not_terminal_buffer));
return;
}
if (buf->b_term->tl_vterm == NULL)
@@ -6623,7 +6623,7 @@ dyn_conpty_init(int verbose)
if (!has_conpty_working())
{
if (verbose)
- emsg(_("E982: ConPTY is not available"));
+ emsg(_(e_conpty_is_not_available));
return FAIL;
}