0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3961: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 22:49:24 +00:00
parent f1474d801b
commit 436b5adc97
62 changed files with 427 additions and 403 deletions

View File

@@ -1482,7 +1482,7 @@ buf_write(
ui_breakcheck();
if (got_int)
{
errmsg = (char_u *)_(e_interr);
errmsg = (char_u *)_(e_interrupted);
break;
}
}
@@ -1649,7 +1649,7 @@ buf_write(
ml_preserve(buf, FALSE);
if (got_int)
{
errmsg = (char_u *)_(e_interr);
errmsg = (char_u *)_(e_interrupted);
goto restore_backup;
}
}
@@ -2295,7 +2295,7 @@ restore_backup:
}
}
else if (got_int)
errmsg = (char_u *)_(e_interr);
errmsg = (char_u *)_(e_interrupted);
else
errmsg = (char_u *)_(e_write_error_file_system_full);
}
@@ -2315,7 +2315,7 @@ restore_backup:
// know we got the message.
if (got_int)
{
msg(_(e_interr));
msg(_(e_interrupted));
out_flush();
}
if ((fd = mch_open((char *)backup, O_RDONLY | O_EXTRA, 0)) >= 0)