forked from aniani/vim
patch 8.2.4008: error messages are spread out
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
This commit is contained in:
@@ -6023,7 +6023,7 @@ ex_tabclose(exarg_T *eap)
|
||||
else
|
||||
# endif
|
||||
if (first_tabpage->tp_next == NULL)
|
||||
emsg(_("E784: Cannot close last tab page"));
|
||||
emsg(_(e_cannot_close_last_tab_page));
|
||||
else
|
||||
{
|
||||
tab_number = get_tabpage_arg(eap);
|
||||
@@ -7366,7 +7366,7 @@ changedir_func(
|
||||
|
||||
if (vim_strchr(p_cpo, CPO_CHDIR) != NULL && curbufIsChanged() && !forceit)
|
||||
{
|
||||
emsg(_("E747: Cannot change directory, buffer is modified (add ! to override)"));
|
||||
emsg(_(e_cannot_change_directory_buffer_is_modified_add_bang_to_override));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user