patch 8.2.3961: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/bufwrite.c b/src/bufwrite.c
index 45e9628..c0d5de3 100644
--- a/src/bufwrite.c
+++ b/src/bufwrite.c
@@ -1482,7 +1482,7 @@
ui_breakcheck();
if (got_int)
{
- errmsg = (char_u *)_(e_interr);
+ errmsg = (char_u *)_(e_interrupted);
break;
}
}
@@ -1649,7 +1649,7 @@
ml_preserve(buf, FALSE);
if (got_int)
{
- errmsg = (char_u *)_(e_interr);
+ errmsg = (char_u *)_(e_interrupted);
goto restore_backup;
}
}
@@ -2295,7 +2295,7 @@
}
}
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 @@
// 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)