mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.3069: error messages are spread out
Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
This commit is contained in:
@@ -2120,7 +2120,7 @@ check_overwrite(
|
||||
// with UNIX it is possible to open a directory
|
||||
if (mch_isdir(ffname))
|
||||
{
|
||||
semsg(_(e_isadir2), ffname);
|
||||
semsg(_(e_src_is_directory), ffname);
|
||||
return FAIL;
|
||||
}
|
||||
#endif
|
||||
@@ -2137,7 +2137,7 @@ check_overwrite(
|
||||
else
|
||||
#endif
|
||||
{
|
||||
emsg(_(e_exists));
|
||||
emsg(_(e_file_exists));
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
@@ -3586,7 +3586,7 @@ check_secure(void)
|
||||
if (secure)
|
||||
{
|
||||
secure = 2;
|
||||
emsg(_(e_curdir));
|
||||
emsg(_(e_command_not_allowed_from_vimrc_in_current_dir_or_tag_search));
|
||||
return TRUE;
|
||||
}
|
||||
#ifdef HAVE_SANDBOX
|
||||
@@ -3729,7 +3729,7 @@ ex_substitute(exarg_T *eap)
|
||||
++cmd;
|
||||
if (vim_strchr((char_u *)"/?&", *cmd) == NULL)
|
||||
{
|
||||
emsg(_(e_backslash));
|
||||
emsg(_(e_backslash_should_be_followed_by));
|
||||
return;
|
||||
}
|
||||
if (*cmd != '&')
|
||||
@@ -3944,7 +3944,7 @@ ex_substitute(exarg_T *eap)
|
||||
if (!subflags.do_count && !curbuf->b_p_ma)
|
||||
{
|
||||
// Substitution is not allowed in non-'modifiable' buffer
|
||||
emsg(_(e_modifiable));
|
||||
emsg(_(e_cannot_make_changes_modifiable_is_off));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -4903,7 +4903,7 @@ ex_global(exarg_T *eap)
|
||||
++cmd;
|
||||
if (vim_strchr((char_u *)"/?&", *cmd) == NULL)
|
||||
{
|
||||
emsg(_(e_backslash));
|
||||
emsg(_(e_backslash_should_be_followed_by));
|
||||
return;
|
||||
}
|
||||
if (*cmd == '&')
|
||||
|
Reference in New Issue
Block a user