summaryrefslogtreecommitdiff
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-05 17:49:15 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-05 17:49:15 +0000
commit9d00e4a8146862c17ed429dc6b1b43349acb2b5f (patch)
tree79a1e0d0a738940dba6a9a86936376bd62e04ca3 /src/insexpand.c
parentd3a117814d6acbf0dca3eff1a7626843b9b3734a (diff)
downloadvim-git-9d00e4a8146862c17ed429dc6b1b43349acb2b5f.tar.gz
patch 8.2.4010: error messages are spread outv8.2.4010
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index 5dbd78216..e6d05bfe9 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -124,9 +124,6 @@ struct compl_S
# define CP_FAST 32 // use fast_breakcheck instead of ui_breakcheck
static char e_hitend[] = N_("Hit end of paragraph");
-# ifdef FEAT_COMPL_FUNC
-static char e_compldel[] = N_("E840: Completion function deleted text");
-# endif
/*
* All the current matches are stored in a list.
@@ -2670,7 +2667,7 @@ expand_by_function(int type, char_u *base)
validate_cursor();
if (!EQUAL_POS(curwin->w_cursor, pos))
{
- emsg(_(e_compldel));
+ emsg(_(e_complete_function_deleted_text));
goto theend;
}
@@ -4506,7 +4503,7 @@ get_userdefined_compl_info(colnr_T curs_col UNUSED)
validate_cursor();
if (!EQUAL_POS(curwin->w_cursor, pos))
{
- emsg(_(e_compldel));
+ emsg(_(e_complete_function_deleted_text));
return FAIL;
}